/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Customer.java
 *
 * Created on Oct 25, 2010, 6:39:05 PM
 */

package matchmakingsystem;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTable;
import java.sql.*;
import javax.swing.ButtonGroup;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPopupMenu;
import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.Enumeration;
import java.util.Vector;
/**
 *
 * @author Reyna && Airma
 */


public class Customer extends javax.swing.JFrame {
    Object[] deleteOptions = {"Yes", "No"};
    Object[] confirmOptions = {"Yes"};
    Object[] errorMesssage = {"Yes"};
    private Connection con;
    private Statement stmt;
    int countRowControl = 0;
    int countColumnControl = 0;
    boolean searching = false;
    boolean fillAll = true;
    MainMenu mainMenu;
    String gender,race,religion,code,name,salary,ageU,ageL,gender2,edulvl,relation,str;
  
    public Customer() {
        initComponents();
        retrieveData();
        addcustomer.setVisible(false);
        viewcustomer.setVisible(false);
        editcustomer.setVisible(false);
        MatchingGUI.setVisible(false);
        viewcustomer1.setVisible(false);
        match.setEnabled(false);
        view.setEnabled(false);
        edit.setEnabled(false);
        delete.setEnabled(false);
        groupButton();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        customerprofile = new javax.swing.JPanel();
        tableinfo = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        searchdataField = new javax.swing.JTextField();
        searchbutton = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jPanel14 = new javax.swing.JPanel();
        jLabel47 = new javax.swing.JLabel();
        search = new javax.swing.JComboBox();
        button = new javax.swing.JPanel();
        edit = new javax.swing.JButton();
        addnew = new javax.swing.JButton();
        delete = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        view = new javax.swing.JButton();
        match = new javax.swing.JButton();
        addcustomer = new javax.swing.JPanel();
        info = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        cus_code = new javax.swing.JLabel();
        cus_name = new javax.swing.JLabel();
        cus_ic = new javax.swing.JLabel();
        cus_DOB = new javax.swing.JLabel();
        cus_contact = new javax.swing.JLabel();
        cus_address = new javax.swing.JLabel();
        cus_email = new javax.swing.JLabel();
        cus_race = new javax.swing.JLabel();
        cus_religion = new javax.swing.JLabel();
        cus_nation = new javax.swing.JLabel();
        cusName = new javax.swing.JTextField();
        cusIc = new javax.swing.JTextField();
        cusContact = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        cusAddress = new javax.swing.JTextArea();
        cusEmail = new javax.swing.JTextField();
        cus_gender = new javax.swing.JLabel();
        cusRace = new javax.swing.JComboBox();
        cusReligion = new javax.swing.JComboBox();
        cusNation = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel13 = new javax.swing.JLabel();
        cus_height = new javax.swing.JLabel();
        cus_weight = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        step5 = new javax.swing.JLabel();
        cus_occupation = new javax.swing.JLabel();
        cus_salary = new javax.swing.JLabel();
        cus_education = new javax.swing.JLabel();
        cusOccupation = new javax.swing.JTextField();
        cusSalary = new javax.swing.JComboBox();
        cusEducation = new javax.swing.JComboBox();
        jSeparator3 = new javax.swing.JSeparator();
        step1 = new javax.swing.JLabel();
        cusRelationship = new javax.swing.JLabel();
        can_age = new javax.swing.JLabel();
        can_race = new javax.swing.JLabel();
        canRace = new javax.swing.JComboBox();
        can_religion = new javax.swing.JLabel();
        canReligion = new javax.swing.JComboBox();
        can_nation = new javax.swing.JLabel();
        canNation = new javax.swing.JTextField();
        can_height = new javax.swing.JLabel();
        can_weight = new javax.swing.JLabel();
        can_occupation = new javax.swing.JLabel();
        canOccupation = new javax.swing.JTextField();
        can_salary = new javax.swing.JLabel();
        canSalary = new javax.swing.JComboBox();
        can_education = new javax.swing.JLabel();
        canEducation = new javax.swing.JComboBox();
        can_hobby = new javax.swing.JLabel();
        canHobby = new javax.swing.JTextField();
        age_from = new javax.swing.JLabel();
        age_to = new javax.swing.JLabel();
        jSeparator4 = new javax.swing.JSeparator();
        step2 = new javax.swing.JLabel();
        dating_time = new javax.swing.JLabel();
        dating_location = new javax.swing.JLabel();
        cus_invoice_code = new javax.swing.JLabel();
        cus_invoice_date = new javax.swing.JLabel();
        cus_payment = new javax.swing.JLabel();
        cus_hobby = new javax.swing.JLabel();
        cusHobby = new javax.swing.JTextField();
        jSeparator5 = new javax.swing.JSeparator();
        datingTime = new javax.swing.JTextField();
        datingLocation = new javax.swing.JTextField();
        cusInvoicecode = new javax.swing.JTextField();
        cusPayment = new javax.swing.JTextField();
        cusWeight = new javax.swing.JTextField();
        cusHeight = new javax.swing.JTextField();
        canWeight = new javax.swing.JTextField();
        canHeight = new javax.swing.JTextField();
        genderFemale = new javax.swing.JRadioButton();
        genderMale = new javax.swing.JRadioButton();
        relationshipFriendship = new javax.swing.JRadioButton();
        relationshipMarriage = new javax.swing.JRadioButton();
        ageTo = new javax.swing.JTextField();
        ageFrom = new javax.swing.JTextField();
        cusDOB = new javax.swing.JFormattedTextField();
        invoiceDate = new javax.swing.JFormattedTextField();
        jLabel5 = new javax.swing.JLabel();
        cusAge = new javax.swing.JTextField();
        cusCode = new javax.swing.JTextField();
        closeCase1 = new javax.swing.JCheckBox();
        jLabel49 = new javax.swing.JLabel();
        jLabel54 = new javax.swing.JLabel();
        buttonadd = new javax.swing.JPanel();
        add = new javax.swing.JButton();
        cancel = new javax.swing.JButton();
        viewcustomer = new javax.swing.JPanel();
        infoview = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        cus_code1 = new javax.swing.JLabel();
        cus_name1 = new javax.swing.JLabel();
        cus_ic1 = new javax.swing.JLabel();
        cus_DOB1 = new javax.swing.JLabel();
        cus_contact1 = new javax.swing.JLabel();
        cus_address1 = new javax.swing.JLabel();
        cus_email1 = new javax.swing.JLabel();
        cus_race1 = new javax.swing.JLabel();
        cus_religion1 = new javax.swing.JLabel();
        cus_nation1 = new javax.swing.JLabel();
        cusCode1 = new javax.swing.JTextField();
        cusName1 = new javax.swing.JTextField();
        cusIc1 = new javax.swing.JTextField();
        cusContact1 = new javax.swing.JTextField();
        jScrollPane3 = new javax.swing.JScrollPane();
        cusAddress1 = new javax.swing.JTextArea();
        cusEmail1 = new javax.swing.JTextField();
        cus_gender1 = new javax.swing.JLabel();
        cusRace1 = new javax.swing.JComboBox();
        cusReligion1 = new javax.swing.JComboBox();
        cusNation1 = new javax.swing.JTextField();
        jSeparator6 = new javax.swing.JSeparator();
        jLabel14 = new javax.swing.JLabel();
        cus_height1 = new javax.swing.JLabel();
        cus_weight1 = new javax.swing.JLabel();
        jSeparator7 = new javax.swing.JSeparator();
        step6 = new javax.swing.JLabel();
        cus_occupation1 = new javax.swing.JLabel();
        cus_salary1 = new javax.swing.JLabel();
        cus_education1 = new javax.swing.JLabel();
        cusOccupation1 = new javax.swing.JTextField();
        cusSalary1 = new javax.swing.JComboBox();
        cusEducation1 = new javax.swing.JComboBox();
        jSeparator8 = new javax.swing.JSeparator();
        step3 = new javax.swing.JLabel();
        cusRelationship1 = new javax.swing.JLabel();
        can_age1 = new javax.swing.JLabel();
        can_race1 = new javax.swing.JLabel();
        canRace1 = new javax.swing.JComboBox();
        can_religion1 = new javax.swing.JLabel();
        canReligion1 = new javax.swing.JComboBox();
        can_nation1 = new javax.swing.JLabel();
        canNation1 = new javax.swing.JTextField();
        can_height1 = new javax.swing.JLabel();
        can_weight1 = new javax.swing.JLabel();
        can_occupation1 = new javax.swing.JLabel();
        canOccupation1 = new javax.swing.JTextField();
        can_salary1 = new javax.swing.JLabel();
        canSalary1 = new javax.swing.JComboBox();
        can_education1 = new javax.swing.JLabel();
        canEducation1 = new javax.swing.JComboBox();
        can_hobby1 = new javax.swing.JLabel();
        canHobby1 = new javax.swing.JTextField();
        age_from1 = new javax.swing.JLabel();
        age_to1 = new javax.swing.JLabel();
        jSeparator9 = new javax.swing.JSeparator();
        step4 = new javax.swing.JLabel();
        dating_time1 = new javax.swing.JLabel();
        dating_location1 = new javax.swing.JLabel();
        cus_invoice_code1 = new javax.swing.JLabel();
        cus_invoice_date1 = new javax.swing.JLabel();
        cus_payment1 = new javax.swing.JLabel();
        cus_hobby1 = new javax.swing.JLabel();
        cusHobby1 = new javax.swing.JTextField();
        jSeparator10 = new javax.swing.JSeparator();
        datingTime1 = new javax.swing.JTextField();
        datingLocation1 = new javax.swing.JTextField();
        cusInvoicecode1 = new javax.swing.JTextField();
        cusPayment1 = new javax.swing.JTextField();
        cusWeight1 = new javax.swing.JTextField();
        cusHeight1 = new javax.swing.JTextField();
        canWeight1 = new javax.swing.JTextField();
        canHeight1 = new javax.swing.JTextField();
        genderFemale1 = new javax.swing.JRadioButton();
        genderMale1 = new javax.swing.JRadioButton();
        relationshipFriendship1 = new javax.swing.JRadioButton();
        relationshipMarriage1 = new javax.swing.JRadioButton();
        ageTo1 = new javax.swing.JTextField();
        ageFrom1 = new javax.swing.JTextField();
        cusDOB1 = new javax.swing.JFormattedTextField();
        invoiceDate1 = new javax.swing.JFormattedTextField();
        cusAge1 = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        closeCase2 = new javax.swing.JCheckBox();
        jLabel8 = new javax.swing.JLabel();
        buttonview = new javax.swing.JPanel();
        jButton8 = new javax.swing.JButton();
        editcustomer = new javax.swing.JPanel();
        infoedit = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        cus_code2 = new javax.swing.JLabel();
        cus_name2 = new javax.swing.JLabel();
        cus_ic2 = new javax.swing.JLabel();
        cus_DOB2 = new javax.swing.JLabel();
        cus_contact2 = new javax.swing.JLabel();
        cus_address2 = new javax.swing.JLabel();
        cus_email2 = new javax.swing.JLabel();
        cus_race2 = new javax.swing.JLabel();
        cus_religion2 = new javax.swing.JLabel();
        cus_nation2 = new javax.swing.JLabel();
        cusCode2 = new javax.swing.JTextField();
        cusName2 = new javax.swing.JTextField();
        cusIc2 = new javax.swing.JTextField();
        cusContact2 = new javax.swing.JTextField();
        jScrollPane4 = new javax.swing.JScrollPane();
        cusAddress2 = new javax.swing.JTextArea();
        cusEmail2 = new javax.swing.JTextField();
        cus_gender2 = new javax.swing.JLabel();
        cusRace2 = new javax.swing.JComboBox();
        cusReligion2 = new javax.swing.JComboBox();
        cusNation2 = new javax.swing.JTextField();
        jSeparator11 = new javax.swing.JSeparator();
        jLabel15 = new javax.swing.JLabel();
        cus_height2 = new javax.swing.JLabel();
        cus_weight2 = new javax.swing.JLabel();
        jSeparator12 = new javax.swing.JSeparator();
        step7 = new javax.swing.JLabel();
        cus_occupation2 = new javax.swing.JLabel();
        cus_salary2 = new javax.swing.JLabel();
        cus_education2 = new javax.swing.JLabel();
        cusOccupation2 = new javax.swing.JTextField();
        cusSalary2 = new javax.swing.JComboBox();
        cusEducation2 = new javax.swing.JComboBox();
        jSeparator13 = new javax.swing.JSeparator();
        step8 = new javax.swing.JLabel();
        cusRelationship2 = new javax.swing.JLabel();
        can_age2 = new javax.swing.JLabel();
        can_race2 = new javax.swing.JLabel();
        canRace2 = new javax.swing.JComboBox();
        can_religion2 = new javax.swing.JLabel();
        canReligion2 = new javax.swing.JComboBox();
        can_nation2 = new javax.swing.JLabel();
        canNation2 = new javax.swing.JTextField();
        can_height2 = new javax.swing.JLabel();
        can_weight2 = new javax.swing.JLabel();
        can_occupation2 = new javax.swing.JLabel();
        canOccupation2 = new javax.swing.JTextField();
        can_salary2 = new javax.swing.JLabel();
        canSalary2 = new javax.swing.JComboBox();
        can_education2 = new javax.swing.JLabel();
        canEducation2 = new javax.swing.JComboBox();
        can_hobby2 = new javax.swing.JLabel();
        canHobby2 = new javax.swing.JTextField();
        age_from2 = new javax.swing.JLabel();
        age_to2 = new javax.swing.JLabel();
        jSeparator14 = new javax.swing.JSeparator();
        step9 = new javax.swing.JLabel();
        dating_time2 = new javax.swing.JLabel();
        dating_location2 = new javax.swing.JLabel();
        cus_invoice_code2 = new javax.swing.JLabel();
        cus_invoice_date2 = new javax.swing.JLabel();
        cus_payment2 = new javax.swing.JLabel();
        cus_hobby2 = new javax.swing.JLabel();
        cusHobby2 = new javax.swing.JTextField();
        jSeparator15 = new javax.swing.JSeparator();
        datingTime2 = new javax.swing.JTextField();
        datingLocation2 = new javax.swing.JTextField();
        cusInvoicecode2 = new javax.swing.JTextField();
        cusPayment2 = new javax.swing.JTextField();
        cusWeight2 = new javax.swing.JTextField();
        cusHeight2 = new javax.swing.JTextField();
        canWeight2 = new javax.swing.JTextField();
        canHeight2 = new javax.swing.JTextField();
        genderFemale2 = new javax.swing.JRadioButton();
        genderMale2 = new javax.swing.JRadioButton();
        relationshipFriendship2 = new javax.swing.JRadioButton();
        relationshipMarriage2 = new javax.swing.JRadioButton();
        ageTo2 = new javax.swing.JTextField();
        ageFrom2 = new javax.swing.JTextField();
        cusDOB2 = new javax.swing.JFormattedTextField();
        invoiceDate2 = new javax.swing.JFormattedTextField();
        cusAge2 = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        closeCase = new javax.swing.JCheckBox();
        jLabel50 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        buttonedit = new javax.swing.JPanel();
        save = new javax.swing.JButton();
        cancel1 = new javax.swing.JButton();
        MatchingGUI = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        Coode = new javax.swing.JLabel();
        Naame = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jCheckBox1 = new javax.swing.JCheckBox();
        jCheckBox2 = new javax.swing.JCheckBox();
        jCheckBox3 = new javax.swing.JCheckBox();
        jCheckBox4 = new javax.swing.JCheckBox();
        jCheckBox5 = new javax.swing.JCheckBox();
        jCheckBox6 = new javax.swing.JCheckBox();
        jCheckBox7 = new javax.swing.JCheckBox();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jLabel17 = new javax.swing.JLabel();
        viewcustomer1 = new javax.swing.JPanel();
        infoview1 = new javax.swing.JPanel();
        jLabel18 = new javax.swing.JLabel();
        cus_code3 = new javax.swing.JLabel();
        cus_name3 = new javax.swing.JLabel();
        cus_ic3 = new javax.swing.JLabel();
        cus_DOB3 = new javax.swing.JLabel();
        cus_contact3 = new javax.swing.JLabel();
        cus_address3 = new javax.swing.JLabel();
        cus_email3 = new javax.swing.JLabel();
        cus_race3 = new javax.swing.JLabel();
        cus_religion3 = new javax.swing.JLabel();
        cus_nation3 = new javax.swing.JLabel();
        cusCode3 = new javax.swing.JTextField();
        cusName3 = new javax.swing.JTextField();
        cusIc3 = new javax.swing.JTextField();
        cusContact3 = new javax.swing.JTextField();
        jScrollPane7 = new javax.swing.JScrollPane();
        cusAddress3 = new javax.swing.JTextArea();
        cusEmail3 = new javax.swing.JTextField();
        cus_gender3 = new javax.swing.JLabel();
        cusRace3 = new javax.swing.JComboBox();
        cusReligion3 = new javax.swing.JComboBox();
        cusNation3 = new javax.swing.JTextField();
        jSeparator16 = new javax.swing.JSeparator();
        jLabel19 = new javax.swing.JLabel();
        cus_height3 = new javax.swing.JLabel();
        cus_weight3 = new javax.swing.JLabel();
        jSeparator17 = new javax.swing.JSeparator();
        step10 = new javax.swing.JLabel();
        cus_occupation3 = new javax.swing.JLabel();
        cus_salary3 = new javax.swing.JLabel();
        cus_education3 = new javax.swing.JLabel();
        cusOccupation3 = new javax.swing.JTextField();
        cusSalary3 = new javax.swing.JComboBox();
        cusEducation3 = new javax.swing.JComboBox();
        jSeparator18 = new javax.swing.JSeparator();
        step11 = new javax.swing.JLabel();
        cusRelationship3 = new javax.swing.JLabel();
        can_age3 = new javax.swing.JLabel();
        can_race3 = new javax.swing.JLabel();
        canRace3 = new javax.swing.JComboBox();
        can_religion3 = new javax.swing.JLabel();
        canReligion3 = new javax.swing.JComboBox();
        can_nation3 = new javax.swing.JLabel();
        canNation3 = new javax.swing.JTextField();
        can_height3 = new javax.swing.JLabel();
        can_weight3 = new javax.swing.JLabel();
        can_occupation3 = new javax.swing.JLabel();
        canOccupation3 = new javax.swing.JTextField();
        can_salary3 = new javax.swing.JLabel();
        canSalary3 = new javax.swing.JComboBox();
        can_education3 = new javax.swing.JLabel();
        canEducation3 = new javax.swing.JComboBox();
        can_hobby3 = new javax.swing.JLabel();
        canHobby3 = new javax.swing.JTextField();
        age_from3 = new javax.swing.JLabel();
        age_to3 = new javax.swing.JLabel();
        jSeparator19 = new javax.swing.JSeparator();
        step12 = new javax.swing.JLabel();
        dating_time3 = new javax.swing.JLabel();
        dating_location3 = new javax.swing.JLabel();
        cus_invoice_code3 = new javax.swing.JLabel();
        cus_invoice_date3 = new javax.swing.JLabel();
        cus_payment3 = new javax.swing.JLabel();
        cus_hobby3 = new javax.swing.JLabel();
        cusHobby3 = new javax.swing.JTextField();
        jSeparator20 = new javax.swing.JSeparator();
        datingTime3 = new javax.swing.JTextField();
        datingLocation3 = new javax.swing.JTextField();
        cusInvoicecode3 = new javax.swing.JTextField();
        cusPayment3 = new javax.swing.JTextField();
        cusWeight3 = new javax.swing.JTextField();
        cusHeight3 = new javax.swing.JTextField();
        canWeight3 = new javax.swing.JTextField();
        canHeight3 = new javax.swing.JTextField();
        genderFemale3 = new javax.swing.JRadioButton();
        genderMale3 = new javax.swing.JRadioButton();
        relationshipFriendship3 = new javax.swing.JRadioButton();
        relationshipMarriage3 = new javax.swing.JRadioButton();
        ageTo3 = new javax.swing.JTextField();
        ageFrom3 = new javax.swing.JTextField();
        cusDOB3 = new javax.swing.JFormattedTextField();
        invoiceDate3 = new javax.swing.JFormattedTextField();
        cusAge3 = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        closeCase3 = new javax.swing.JCheckBox();
        jLabel21 = new javax.swing.JLabel();
        buttonview1 = new javax.swing.JPanel();
        jButton9 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        tableinfo.setBackground(java.awt.Color.white);
        tableinfo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "CUSTOMER PROFILES", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        tableinfo.setOpaque(false);
        tableinfo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Purisa", 1, 14));
        jLabel1.setText("SEARCH:");
        tableinfo.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 80, -1, 30));

        searchdataField.setFont(new java.awt.Font("Tahoma", 2, 11));
        searchdataField.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                searchdataFieldKeyReleased(evt);
            }
        });
        tableinfo.add(searchdataField, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 80, 310, 30));

        searchbutton.setBackground(java.awt.Color.white);
        searchbutton.setFont(new java.awt.Font("Purisa", 1, 14));
        searchbutton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/search.gif"))); // NOI18N
        searchbutton.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        searchbutton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchbuttonActionPerformed(evt);
            }
        });
        tableinfo.add(searchbutton, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 80, 30, 30));

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "CUSTOMER CODE", "CUSTOMER NAME", "CUSTOMER IC NUMBER"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.setOpaque(false);
        jTable1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTable1KeyReleased(evt);
            }
        });
        jScrollPane1.setViewportView(jTable1);

        tableinfo.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 120, 550, 460));

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "STAFF CODE", "STAFF NAME"
            }
        ));
        jTable2.setOpaque(false);
        jScrollPane5.setViewportView(jTable2);

        tableinfo.add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 130, 350, 450));

        jLabel47.setFont(new java.awt.Font("Tahoma", 2, 18));
        jLabel47.setText("No result found");

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(98, 98, 98)
                .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(115, Short.MAX_VALUE))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                .addContainerGap(48, Short.MAX_VALUE)
                .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35))
        );

        tableinfo.add(jPanel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 130, 350, 110));

        search.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CUSTOMER CODE", "IC NUMBER" }));
        tableinfo.add(search, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 80, 120, 30));

        edit.setBackground(java.awt.Color.white);
        edit.setFont(new java.awt.Font("Purisa", 1, 14));
        edit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/user-info.gif"))); // NOI18N
        edit.setText("EDIT");
        edit.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        edit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                editActionPerformed(evt);
            }
        });

        addnew.setBackground(java.awt.Color.white);
        addnew.setFont(new java.awt.Font("Purisa", 1, 14));
        addnew.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/add-user.gif"))); // NOI18N
        addnew.setText(" ADD NEW ");
        addnew.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        addnew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addnewActionPerformed(evt);
            }
        });

        delete.setBackground(java.awt.Color.white);
        delete.setFont(new java.awt.Font("Purisa", 1, 14));
        delete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/Delete Icon.png"))); // NOI18N
        delete.setText("  DELETE  ");
        delete.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        delete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteActionPerformed(evt);
            }
        });

        jButton5.setBackground(java.awt.Color.white);
        jButton5.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/home.gif"))); // NOI18N
        jButton5.setText("   MAIN   ");
        jButton5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        view.setBackground(java.awt.Color.white);
        view.setFont(new java.awt.Font("Purisa", 1, 14));
        view.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/view-user.gif"))); // NOI18N
        view.setText("VIEW");
        view.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        view.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                viewActionPerformed(evt);
            }
        });

        match.setBackground(java.awt.Color.white);
        match.setFont(new java.awt.Font("Purisa", 1, 14));
        match.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/view-user.gif"))); // NOI18N
        match.setText("MATCH");
        match.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        match.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                matchActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout buttonLayout = new javax.swing.GroupLayout(button);
        button.setLayout(buttonLayout);
        buttonLayout.setHorizontalGroup(
            buttonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttonLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(edit, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
            .addGroup(buttonLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(addnew, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
            .addGroup(buttonLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(delete, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonLayout.createSequentialGroup()
                .addContainerGap(20, Short.MAX_VALUE)
                .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(buttonLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(view, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
            .addGroup(buttonLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(match, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
        );
        buttonLayout.setVerticalGroup(
            buttonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttonLayout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addComponent(match, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(view, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(edit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(addnew, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(delete, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 172, Short.MAX_VALUE)
                .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22))
        );

        javax.swing.GroupLayout customerprofileLayout = new javax.swing.GroupLayout(customerprofile);
        customerprofile.setLayout(customerprofileLayout);
        customerprofileLayout.setHorizontalGroup(
            customerprofileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, customerprofileLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addComponent(tableinfo, javax.swing.GroupLayout.DEFAULT_SIZE, 608, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(button, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(227, 227, 227))
        );
        customerprofileLayout.setVerticalGroup(
            customerprofileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(customerprofileLayout.createSequentialGroup()
                .addGap(53, 53, 53)
                .addGroup(customerprofileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(button, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tableinfo, javax.swing.GroupLayout.PREFERRED_SIZE, 611, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(66, Short.MAX_VALUE))
        );

        customerprofile.setBounds(0, 0, 1080, 730);
        jLayeredPane1.add(customerprofile, javax.swing.JLayeredPane.DEFAULT_LAYER);

        info.setBackground(java.awt.Color.white);
        info.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NEW CUSTOMER PROFILE", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        info.setOpaque(false);
        info.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel2.setFont(new java.awt.Font("Purisa", 1, 18));
        jLabel2.setText("STEP 3: BACKGROUND");
        info.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 590, -1, -1));

        cus_code.setText("CUSTOMER CODE:");
        info.add(cus_code, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1));

        cus_name.setText("NAME:");
        info.add(cus_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));

        cus_ic.setText("I/C NUMBER:");
        info.add(cus_ic, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));

        cus_DOB.setText("D.O.B:");
        info.add(cus_DOB, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, -1, -1));

        cus_contact.setText("CONTACT:");
        info.add(cus_contact, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, -1));

        cus_address.setText("ADDRESS:");
        info.add(cus_address, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, -1, -1));

        cus_email.setText("EMAIL:");
        info.add(cus_email, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 350, -1, -1));

        cus_race.setText("RACE:");
        info.add(cus_race, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 380, -1, -1));

        cus_religion.setText("RELIGION:");
        info.add(cus_religion, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 410, -1, -1));

        cus_nation.setText("NATIONALITY:");
        info.add(cus_nation, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 440, -1, -1));
        info.add(cusName, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 110, 200, -1));
        info.add(cusIc, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 140, 140, -1));
        info.add(cusContact, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 260, 200, -1));

        cusAddress.setRows(5);
        jScrollPane2.setViewportView(cusAddress);

        info.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 290, 200, 60));
        info.add(cusEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 360, 210, -1));

        cus_gender.setText("GENDER:");
        info.add(cus_gender, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, -1, -1));

        cusRace.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RACE>", "MALAY", "CHINESE", "INDIAN", "OTHERS" }));
        info.add(cusRace, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 380, -1, -1));

        cusReligion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RELIGION>", "ISLAM", "BUDDHISM", "CHRISTIAN", "HINDHUISM", "OTHERS" }));
        info.add(cusReligion, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 410, -1, -1));
        info.add(cusNation, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 440, 120, -1));
        info.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 580, 400, 10));

        jLabel13.setFont(new java.awt.Font("Purisa", 1, 18));
        jLabel13.setText("STEP 4: CANDIDATE CRITERIA");
        info.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 120, -1, -1));

        cus_height.setText("HEIGHT: (CM)");
        info.add(cus_height, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 520, -1, -1));

        cus_weight.setText("WEIGHT: (KG)");
        info.add(cus_weight, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 550, -1, -1));
        info.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 110, 400, 10));

        step5.setFont(new java.awt.Font("Purisa", 1, 18));
        step5.setText("STEP 5: OTHERS");
        info.add(step5, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 500, -1, -1));

        cus_occupation.setText("OCCUPATION:");
        info.add(cus_occupation, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 630, -1, -1));

        cus_salary.setText("SALARY:");
        info.add(cus_salary, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 660, -1, -1));

        cus_education.setText("EDUCATION:");
        info.add(cus_education, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 50, -1, -1));

        cusOccupation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cusOccupationActionPerformed(evt);
            }
        });
        info.add(cusOccupation, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 630, 200, -1));

        cusSalary.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<SALARY>", "<RM1000", "RM1000-RM2000", "RM2001-RM3000", "RM3001-RM4000", "RM4001-RM5000", ">RM5000" }));
        info.add(cusSalary, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 660, -1, -1));

        cusEducation.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<EDUCATION>", "PRIMARY", "SECONDARY", "TERTIARY", "OTHERS" }));
        cusEducation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cusEducationActionPerformed(evt);
            }
        });
        info.add(cusEducation, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 50, -1, -1));

        jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);
        info.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 40, 10, 650));

        step1.setFont(new java.awt.Font("Purisa", 1, 18));
        step1.setText("STEP 1: PERSONAL INFO");
        info.add(step1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, -1, -1));

        cusRelationship.setText("RELATIONSHIP LOOKING FOR:");
        info.add(cusRelationship, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 160, -1, -1));

        can_age.setText("AGE RANGE:");
        info.add(can_age, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 190, -1, -1));

        can_race.setText("RACE:");
        info.add(can_race, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 220, -1, -1));

        canRace.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RACE>", "MALAY", "CHINESE", "INDIAN", "OTHERS" }));
        info.add(canRace, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 220, -1, -1));

        can_religion.setText("RELIGION:");
        info.add(can_religion, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 250, -1, -1));

        canReligion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RELIGION>", "ISLAM", "BUDDHISM", "CHRISTIAN", "HINDHUISM", "OTHERS" }));
        info.add(canReligion, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 250, -1, -1));

        can_nation.setText("NATIONALITY:");
        info.add(can_nation, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 280, -1, -1));
        info.add(canNation, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 280, 120, -1));

        can_height.setText("HEIGHT: (CM)");
        info.add(can_height, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 310, -1, -1));

        can_weight.setText("WEIGHT: (KG)");
        info.add(can_weight, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 340, -1, -1));

        can_occupation.setText("OCCUPATION:");
        info.add(can_occupation, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 370, -1, -1));
        info.add(canOccupation, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 370, 200, -1));

        can_salary.setText("SALARY:");
        info.add(can_salary, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 400, -1, -1));

        canSalary.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<SALARY>", "<RM1000", "RM1000-RM2000", "RM2001-RM3000", "RM3001-RM4000", "RM4001-RM5000", ">RM5000" }));
        info.add(canSalary, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 400, -1, -1));

        can_education.setText("EDUCATION:");
        info.add(can_education, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 430, -1, -1));

        canEducation.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<EDUCATION>", "PRIMARY", "SECONDARY", "TERTIARY", "OTHERS" }));
        info.add(canEducation, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 430, -1, -1));

        can_hobby.setText("HOBBY:");
        info.add(can_hobby, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 460, -1, -1));
        info.add(canHobby, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 460, 150, -1));

        age_from.setText("FROM");
        info.add(age_from, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 190, -1, -1));

        age_to.setText("T0");
        info.add(age_to, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 190, -1, -1));
        info.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 470, 400, 10));

        step2.setFont(new java.awt.Font("Purisa", 1, 18));
        step2.setText("STEP 2: TRAITS");
        info.add(step2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 480, -1, -1));

        dating_time.setText("PREFERRED DATING TIME:");
        info.add(dating_time, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 540, -1, -1));

        dating_location.setText("PREFERRED DATING LOCATION:");
        info.add(dating_location, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 570, -1, -1));

        cus_invoice_code.setText("INVOICE CODE:");
        info.add(cus_invoice_code, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 600, -1, -1));

        cus_invoice_date.setText("INVOICE DATE:");
        info.add(cus_invoice_date, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 630, -1, -1));

        cus_payment.setText("PAYMENT: (RM)");
        info.add(cus_payment, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 660, -1, -1));

        cus_hobby.setText("HOBBY:");
        info.add(cus_hobby, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 80, -1, -1));
        info.add(cusHobby, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 80, 150, -1));
        info.add(jSeparator5, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 490, 400, 10));
        info.add(datingTime, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 540, 160, -1));
        info.add(datingLocation, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 570, 160, -1));
        info.add(cusInvoicecode, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 600, 160, -1));
        info.add(cusPayment, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 660, 160, -1));
        info.add(cusWeight, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 550, 60, -1));
        info.add(cusHeight, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 520, 60, -1));
        info.add(canWeight, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 340, 70, -1));
        info.add(canHeight, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 310, 70, -1));

        genderFemale.setText("FEMALE");
        info.add(genderFemale, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 200, -1, -1));

        genderMale.setText("MALE");
        info.add(genderMale, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 200, -1, -1));

        relationshipFriendship.setText("FRIENDSHIP");
        info.add(relationshipFriendship, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 160, -1, -1));

        relationshipMarriage.setText("MARRIAGE");
        info.add(relationshipMarriage, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 160, -1, -1));
        info.add(ageTo, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 190, 60, -1));
        info.add(ageFrom, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 190, 50, -1));

        cusDOB.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        info.add(cusDOB, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 170, 140, -1));

        invoiceDate.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        info.add(invoiceDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 630, 160, -1));

        jLabel5.setText("AGE:");
        info.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, 40, -1));
        info.add(cusAge, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 230, 40, -1));
        info.add(cusCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 80, 90, -1));

        closeCase1.setText("CLOSE CASE");
        info.add(closeCase1, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 80, -1, -1));

        jLabel49.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel49.setText("(Example:880607085789) ");
        info.add(jLabel49, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 140, -1, 20));

        jLabel54.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel54.setText("(Example:02/10/2010) ");
        info.add(jLabel54, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 170, -1, 20));

        add.setBackground(java.awt.Color.white);
        add.setFont(new java.awt.Font("Purisa", 1, 14));
        add.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/add-button.png"))); // NOI18N
        add.setText("ADD");
        add.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        add.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addActionPerformed(evt);
            }
        });

        cancel.setBackground(java.awt.Color.white);
        cancel.setFont(new java.awt.Font("Purisa", 1, 14));
        cancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/erase.gif"))); // NOI18N
        cancel.setText(" CANCEL ");
        cancel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout buttonaddLayout = new javax.swing.GroupLayout(buttonadd);
        buttonadd.setLayout(buttonaddLayout);
        buttonaddLayout.setHorizontalGroup(
            buttonaddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttonaddLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(buttonaddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(add, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        buttonaddLayout.setVerticalGroup(
            buttonaddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonaddLayout.createSequentialGroup()
                .addContainerGap(37, Short.MAX_VALUE)
                .addComponent(add, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addComponent(cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(68, 68, 68))
        );

        javax.swing.GroupLayout addcustomerLayout = new javax.swing.GroupLayout(addcustomer);
        addcustomer.setLayout(addcustomerLayout);
        addcustomerLayout.setHorizontalGroup(
            addcustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addcustomerLayout.createSequentialGroup()
                .addComponent(info, javax.swing.GroupLayout.PREFERRED_SIZE, 850, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(buttonadd, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(31, 31, 31))
        );
        addcustomerLayout.setVerticalGroup(
            addcustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addcustomerLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(info, javax.swing.GroupLayout.PREFERRED_SIZE, 700, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, addcustomerLayout.createSequentialGroup()
                .addContainerGap(143, Short.MAX_VALUE)
                .addComponent(buttonadd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(376, 376, 376))
        );

        addcustomer.setBounds(0, 0, 1080, 730);
        jLayeredPane1.add(addcustomer, javax.swing.JLayeredPane.DEFAULT_LAYER);

        infoview.setBackground(java.awt.Color.white);
        infoview.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "VIEW CUSTOMER PROFILE", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        infoview.setOpaque(false);
        infoview.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel3.setFont(new java.awt.Font("Purisa", 1, 18));
        jLabel3.setText("STEP 3: BACKGROUND");
        infoview.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 590, -1, -1));

        cus_code1.setText("CUSTOMER CODE:");
        infoview.add(cus_code1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1));

        cus_name1.setText("NAME:");
        infoview.add(cus_name1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));

        cus_ic1.setText("I/C NUMBER:");
        infoview.add(cus_ic1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));

        cus_DOB1.setText("D.O.B:");
        infoview.add(cus_DOB1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, -1, -1));

        cus_contact1.setText("CONTACT:");
        infoview.add(cus_contact1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, -1));

        cus_address1.setText("ADDRESS:");
        infoview.add(cus_address1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, -1, -1));

        cus_email1.setText("EMAIL:");
        infoview.add(cus_email1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 350, -1, -1));

        cus_race1.setText("RACE:");
        infoview.add(cus_race1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 380, -1, -1));

        cus_religion1.setText("RELIGION:");
        infoview.add(cus_religion1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 410, -1, -1));

        cus_nation1.setText("NATIONALITY:");
        infoview.add(cus_nation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 440, -1, -1));
        infoview.add(cusCode1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 80, 90, -1));
        infoview.add(cusName1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 110, 200, -1));
        infoview.add(cusIc1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 140, 200, -1));
        infoview.add(cusContact1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 260, 200, -1));

        cusAddress1.setRows(5);
        jScrollPane3.setViewportView(cusAddress1);

        infoview.add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 290, 200, 60));
        infoview.add(cusEmail1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 360, 210, -1));

        cus_gender1.setText("GENDER:");
        infoview.add(cus_gender1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, -1, -1));

        cusRace1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RACE>", "MALAY", "CHINESE", "INDIAN", "OTHERS" }));
        infoview.add(cusRace1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 380, -1, -1));

        cusReligion1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RELIGION>", "ISLAM", "BUDDHISM", "CHRISTIAN", "HINDHUISM", "OTHERS" }));
        infoview.add(cusReligion1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 410, -1, -1));
        infoview.add(cusNation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 440, 120, -1));
        infoview.add(jSeparator6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 580, 400, 10));

        jLabel14.setFont(new java.awt.Font("Purisa", 1, 18));
        jLabel14.setText("STEP 4: CANDIDATE CRITERIA");
        infoview.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 120, -1, -1));

        cus_height1.setText("HEIGHT: (CM)");
        infoview.add(cus_height1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 520, -1, -1));

        cus_weight1.setText("WEIGHT: (KG)");
        infoview.add(cus_weight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 550, -1, -1));
        infoview.add(jSeparator7, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 110, 400, 10));

        step6.setFont(new java.awt.Font("Purisa", 1, 18));
        step6.setText("STEP 5: OTHERS");
        infoview.add(step6, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 500, -1, -1));

        cus_occupation1.setText("OCCUPATION:");
        infoview.add(cus_occupation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 630, -1, -1));

        cus_salary1.setText("SALARY:");
        infoview.add(cus_salary1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 660, -1, -1));

        cus_education1.setText("EDUCATION:");
        infoview.add(cus_education1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 50, -1, -1));

        cusOccupation1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cusOccupation1ActionPerformed(evt);
            }
        });
        infoview.add(cusOccupation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 630, 200, -1));

        cusSalary1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<SALARY>", "<RM1000", "RM1000-RM2000", "RM2001-RM3000", "RM3001-RM4000", "RM4001-RM5000", ">RM5000" }));
        infoview.add(cusSalary1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 660, -1, -1));

        cusEducation1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<EDUCATION>", "PRIMARY", "SECONDARY", "TERTIARY", "OTHERS" }));
        cusEducation1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cusEducation1ActionPerformed(evt);
            }
        });
        infoview.add(cusEducation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 50, -1, -1));

        jSeparator8.setOrientation(javax.swing.SwingConstants.VERTICAL);
        infoview.add(jSeparator8, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 40, 10, 650));

        step3.setFont(new java.awt.Font("Purisa", 1, 18));
        step3.setText("STEP 1: PERSONAL INFO");
        infoview.add(step3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, -1, -1));

        cusRelationship1.setText("RELATIONSHIP LOOKING FOR:");
        infoview.add(cusRelationship1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 160, -1, -1));

        can_age1.setText("AGE RANGE:");
        infoview.add(can_age1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 190, -1, -1));

        can_race1.setText("RACE:");
        infoview.add(can_race1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 220, -1, -1));

        canRace1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RACE>", "MALAY", "CHINESE", "INDIAN", "OTHERS" }));
        infoview.add(canRace1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 220, -1, -1));

        can_religion1.setText("RELIGION:");
        infoview.add(can_religion1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 250, -1, -1));

        canReligion1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RELIGION>", "ISLAM", "BUDDHISM", "CHRISTIAN", "HINDHUISM", "OTHERS" }));
        infoview.add(canReligion1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 250, -1, -1));

        can_nation1.setText("NATIONALITY:");
        infoview.add(can_nation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 280, -1, -1));
        infoview.add(canNation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 280, 120, -1));

        can_height1.setText("HEIGHT: (CM)");
        infoview.add(can_height1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 310, -1, -1));

        can_weight1.setText("WEIGHT: (KG)");
        infoview.add(can_weight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 340, -1, -1));

        can_occupation1.setText("OCCUPATION:");
        infoview.add(can_occupation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 370, -1, -1));
        infoview.add(canOccupation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 370, 200, -1));

        can_salary1.setText("SALARY:");
        infoview.add(can_salary1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 400, -1, -1));

        canSalary1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<SALARY>", "<RM1000", "RM1000-RM2000", "RM2001-RM3000", "RM3001-RM4000", "RM4001-RM5000", ">RM5000" }));
        infoview.add(canSalary1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 400, -1, -1));

        can_education1.setText("EDUCATION:");
        infoview.add(can_education1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 430, -1, -1));

        canEducation1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<EDUCATION>", "PRIMARY", "SECONDARY", "TERTIARY", "OTHERS" }));
        infoview.add(canEducation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 430, -1, -1));

        can_hobby1.setText("HOBBY:");
        infoview.add(can_hobby1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 460, -1, -1));
        infoview.add(canHobby1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 460, 150, -1));

        age_from1.setText("FROM");
        infoview.add(age_from1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 190, -1, -1));

        age_to1.setText("T0");
        infoview.add(age_to1, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 190, -1, -1));
        infoview.add(jSeparator9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 470, 400, 10));

        step4.setFont(new java.awt.Font("Purisa", 1, 18));
        step4.setText("STEP 2: TRAITS");
        infoview.add(step4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 480, -1, -1));

        dating_time1.setText("PREFERRED DATING TIME:");
        infoview.add(dating_time1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 540, -1, -1));

        dating_location1.setText("PREFERRED DATING LOCATION:");
        infoview.add(dating_location1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 570, -1, -1));

        cus_invoice_code1.setText("INVOICE CODE:");
        infoview.add(cus_invoice_code1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 600, -1, -1));

        cus_invoice_date1.setText("INVOICE DATE:");
        infoview.add(cus_invoice_date1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 630, -1, -1));

        cus_payment1.setText("PAYMENT: (RM)");
        infoview.add(cus_payment1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 660, -1, -1));

        cus_hobby1.setText("HOBBY:");
        infoview.add(cus_hobby1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 80, -1, -1));
        infoview.add(cusHobby1, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 80, 150, -1));
        infoview.add(jSeparator10, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 490, 400, 10));
        infoview.add(datingTime1, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 540, 160, -1));
        infoview.add(datingLocation1, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 570, 160, -1));
        infoview.add(cusInvoicecode1, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 600, 160, -1));
        infoview.add(cusPayment1, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 660, 160, -1));
        infoview.add(cusWeight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 550, 60, -1));
        infoview.add(cusHeight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 520, 60, -1));
        infoview.add(canWeight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 340, 70, -1));
        infoview.add(canHeight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 310, 70, -1));

        genderFemale1.setText("FEMALE");
        infoview.add(genderFemale1, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 200, -1, -1));

        genderMale1.setText("MALE");
        infoview.add(genderMale1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 200, -1, -1));

        relationshipFriendship1.setText("FRIENDSHIP");
        infoview.add(relationshipFriendship1, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 160, -1, -1));

        relationshipMarriage1.setText("MARRIAGE");
        infoview.add(relationshipMarriage1, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 160, -1, -1));
        infoview.add(ageTo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 190, 60, -1));
        infoview.add(ageFrom1, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 190, 50, -1));

        cusDOB1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        infoview.add(cusDOB1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 170, 140, -1));

        invoiceDate1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        infoview.add(invoiceDate1, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 630, 160, -1));
        infoview.add(cusAge1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 230, 40, -1));

        jLabel6.setText("AGE:");
        infoview.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, 40, -1));

        closeCase2.setText("CLOSE CASE");
        infoview.add(closeCase2, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 80, -1, -1));

        jLabel8.setText("jLabel8");
        infoview.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 180, -1, -1));

        jButton8.setBackground(java.awt.Color.white);
        jButton8.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/red-mark.gif"))); // NOI18N
        jButton8.setText("   OK   ");
        jButton8.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout buttonviewLayout = new javax.swing.GroupLayout(buttonview);
        buttonview.setLayout(buttonviewLayout);
        buttonviewLayout.setHorizontalGroup(
            buttonviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonviewLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        buttonviewLayout.setVerticalGroup(
            buttonviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttonviewLayout.createSequentialGroup()
                .addGap(75, 75, 75)
                .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(88, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout viewcustomerLayout = new javax.swing.GroupLayout(viewcustomer);
        viewcustomer.setLayout(viewcustomerLayout);
        viewcustomerLayout.setHorizontalGroup(
            viewcustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewcustomerLayout.createSequentialGroup()
                .addGap(881, 881, 881)
                .addComponent(buttonview, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(36, 36, 36))
            .addGroup(viewcustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(viewcustomerLayout.createSequentialGroup()
                    .addGap(20, 20, 20)
                    .addComponent(infoview, javax.swing.GroupLayout.PREFERRED_SIZE, 850, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(237, Short.MAX_VALUE)))
        );
        viewcustomerLayout.setVerticalGroup(
            viewcustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewcustomerLayout.createSequentialGroup()
                .addContainerGap(505, Short.MAX_VALUE)
                .addComponent(buttonview, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22))
            .addGroup(viewcustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(viewcustomerLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(infoview, javax.swing.GroupLayout.PREFERRED_SIZE, 700, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(19, Short.MAX_VALUE)))
        );

        viewcustomer.setBounds(0, 0, 1080, 730);
        jLayeredPane1.add(viewcustomer, javax.swing.JLayeredPane.DEFAULT_LAYER);

        editcustomer.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        infoedit.setBackground(java.awt.Color.white);
        infoedit.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "EDIT CUSTOMER PROFILE", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        infoedit.setOpaque(false);
        infoedit.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel4.setFont(new java.awt.Font("Purisa", 1, 18));
        jLabel4.setText("STEP 3: BACKGROUND");
        infoedit.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 590, -1, -1));

        cus_code2.setText("CUSTOMER CODE:");
        infoedit.add(cus_code2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1));

        cus_name2.setText("NAME:");
        infoedit.add(cus_name2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));

        cus_ic2.setText("I/C NUMBER:");
        infoedit.add(cus_ic2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));

        cus_DOB2.setText("D.O.B:");
        infoedit.add(cus_DOB2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, -1, -1));

        cus_contact2.setText("CONTACT:");
        infoedit.add(cus_contact2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, -1));

        cus_address2.setText("ADDRESS:");
        infoedit.add(cus_address2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, -1, -1));

        cus_email2.setText("EMAIL:");
        infoedit.add(cus_email2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 350, -1, -1));

        cus_race2.setText("RACE:");
        infoedit.add(cus_race2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 380, -1, -1));

        cus_religion2.setText("RELIGION:");
        infoedit.add(cus_religion2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 410, -1, -1));

        cus_nation2.setText("NATIONALITY:");
        infoedit.add(cus_nation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 440, -1, -1));
        infoedit.add(cusCode2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 80, 100, -1));
        infoedit.add(cusName2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 110, 200, -1));
        infoedit.add(cusIc2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 140, 140, -1));
        infoedit.add(cusContact2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 260, 200, -1));

        cusAddress2.setRows(5);
        jScrollPane4.setViewportView(cusAddress2);

        infoedit.add(jScrollPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 290, 200, 60));
        infoedit.add(cusEmail2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 360, 210, -1));

        cus_gender2.setText("GENDER:");
        infoedit.add(cus_gender2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, -1, -1));

        cusRace2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RACE>", "MALAY", "CHINESE", "INDIAN", "OTHERS" }));
        infoedit.add(cusRace2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 380, -1, -1));

        cusReligion2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RELIGION>", "ISLAM", "BUDDHISM", "CHRISTIAN", "HINDHUISM", "OTHERS" }));
        infoedit.add(cusReligion2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 410, -1, -1));
        infoedit.add(cusNation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 440, 120, -1));
        infoedit.add(jSeparator11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 580, 400, 10));

        jLabel15.setFont(new java.awt.Font("Purisa", 1, 18));
        jLabel15.setText("STEP 4: CANDIDATE CRITERIA");
        infoedit.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 120, -1, -1));

        cus_height2.setText("HEIGHT: (CM)");
        infoedit.add(cus_height2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 520, -1, -1));

        cus_weight2.setText("WEIGHT: (KG)");
        infoedit.add(cus_weight2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 550, -1, -1));
        infoedit.add(jSeparator12, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 110, 400, 10));

        step7.setFont(new java.awt.Font("Purisa", 1, 18));
        step7.setText("STEP 5: OTHERS");
        infoedit.add(step7, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 500, -1, -1));

        cus_occupation2.setText("OCCUPATION:");
        infoedit.add(cus_occupation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 630, -1, -1));

        cus_salary2.setText("SALARY:");
        infoedit.add(cus_salary2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 660, -1, -1));

        cus_education2.setText("EDUCATION:");
        infoedit.add(cus_education2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 50, -1, -1));

        cusOccupation2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cusOccupation2ActionPerformed(evt);
            }
        });
        infoedit.add(cusOccupation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 630, 200, -1));

        cusSalary2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<SALARY>", "<RM1000", "RM1000-RM2000", "RM2001-RM3000", "RM3001-RM4000", "RM4001-RM5000", ">RM5000" }));
        infoedit.add(cusSalary2, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 660, -1, -1));

        cusEducation2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<EDUCATION>", "PRIMARY", "SECONDARY", "TERTIARY", "OTHERS" }));
        cusEducation2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cusEducation2ActionPerformed(evt);
            }
        });
        infoedit.add(cusEducation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 50, -1, -1));

        jSeparator13.setOrientation(javax.swing.SwingConstants.VERTICAL);
        infoedit.add(jSeparator13, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 40, 10, 650));

        step8.setFont(new java.awt.Font("Purisa", 1, 18));
        step8.setText("STEP 1: PERSONAL INFO");
        infoedit.add(step8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, -1, -1));

        cusRelationship2.setText("RELATIONSHIP LOOKING FOR:");
        infoedit.add(cusRelationship2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 160, -1, -1));

        can_age2.setText("AGE RANGE:");
        infoedit.add(can_age2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 190, -1, -1));

        can_race2.setText("RACE:");
        infoedit.add(can_race2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 220, -1, -1));

        canRace2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RACE>", "MALAY", "CHINESE", "INDIAN", "OTHERS" }));
        infoedit.add(canRace2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 220, -1, -1));

        can_religion2.setText("RELIGION:");
        infoedit.add(can_religion2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 250, -1, -1));

        canReligion2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RELIGION>", "ISLAM", "BUDDHISM", "CHRISTIAN", "HINDHUISM", "OTHERS" }));
        infoedit.add(canReligion2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 250, -1, -1));

        can_nation2.setText("NATIONALITY:");
        infoedit.add(can_nation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 280, -1, -1));
        infoedit.add(canNation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 280, 120, -1));

        can_height2.setText("HEIGHT: (CM)");
        infoedit.add(can_height2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 310, -1, -1));

        can_weight2.setText("WEIGHT: (KG)");
        infoedit.add(can_weight2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 340, -1, -1));

        can_occupation2.setText("OCCUPATION:");
        infoedit.add(can_occupation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 370, -1, -1));
        infoedit.add(canOccupation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 370, 200, -1));

        can_salary2.setText("SALARY:");
        infoedit.add(can_salary2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 400, -1, -1));

        canSalary2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<SALARY>", "<RM1000", "RM1000-RM2000", "RM2001-RM3000", "RM3001-RM4000", "RM4001-RM5000", ">RM5000" }));
        infoedit.add(canSalary2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 400, -1, -1));

        can_education2.setText("EDUCATION:");
        infoedit.add(can_education2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 430, -1, -1));

        canEducation2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<EDUCATION>", "PRIMARY", "SECONDARY", "TERTIARY", "OTHERS" }));
        infoedit.add(canEducation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 430, -1, -1));

        can_hobby2.setText("HOBBY:");
        infoedit.add(can_hobby2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 460, -1, -1));
        infoedit.add(canHobby2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 460, 150, -1));

        age_from2.setText("FROM");
        infoedit.add(age_from2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 190, -1, -1));

        age_to2.setText("T0");
        infoedit.add(age_to2, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 190, -1, -1));
        infoedit.add(jSeparator14, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 470, 400, 10));

        step9.setFont(new java.awt.Font("Purisa", 1, 18));
        step9.setText("STEP 2: TRAITS");
        infoedit.add(step9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 480, -1, -1));

        dating_time2.setText("PREFERRED DATING TIME:");
        infoedit.add(dating_time2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 540, -1, -1));

        dating_location2.setText("PREFERRED DATING LOCATION:");
        infoedit.add(dating_location2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 570, -1, -1));

        cus_invoice_code2.setText("INVOICE CODE:");
        infoedit.add(cus_invoice_code2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 600, -1, -1));

        cus_invoice_date2.setText("INVOICE DATE:");
        infoedit.add(cus_invoice_date2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 630, -1, -1));

        cus_payment2.setText("PAYMENT: (RM)");
        infoedit.add(cus_payment2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 660, -1, -1));

        cus_hobby2.setText("HOBBY:");
        infoedit.add(cus_hobby2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 80, -1, -1));
        infoedit.add(cusHobby2, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 80, 150, -1));
        infoedit.add(jSeparator15, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 490, 400, 10));
        infoedit.add(datingTime2, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 540, 160, -1));
        infoedit.add(datingLocation2, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 570, 160, -1));
        infoedit.add(cusInvoicecode2, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 600, 140, -1));
        infoedit.add(cusPayment2, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 660, 140, -1));
        infoedit.add(cusWeight2, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 550, 60, -1));
        infoedit.add(cusHeight2, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 520, 60, -1));
        infoedit.add(canWeight2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 340, 70, -1));
        infoedit.add(canHeight2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 310, 70, -1));

        genderFemale2.setText("FEMALE");
        infoedit.add(genderFemale2, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 200, -1, -1));

        genderMale2.setText("MALE");
        infoedit.add(genderMale2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 200, -1, -1));

        relationshipFriendship2.setText("FRIENDSHIP");
        infoedit.add(relationshipFriendship2, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 160, -1, -1));

        relationshipMarriage2.setText("MARRIAGE");
        infoedit.add(relationshipMarriage2, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 160, -1, -1));
        infoedit.add(ageTo2, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 190, 60, -1));
        infoedit.add(ageFrom2, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 190, 50, -1));

        cusDOB2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        infoedit.add(cusDOB2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 170, 140, -1));

        invoiceDate2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        infoedit.add(invoiceDate2, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 630, 140, -1));
        infoedit.add(cusAge2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 230, 40, -1));

        jLabel7.setText("AGE:");
        infoedit.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, 40, -1));

        closeCase.setText("CLOSE CASE");
        infoedit.add(closeCase, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 80, -1, -1));

        jLabel50.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel50.setText("(Example:880607085789) ");
        infoedit.add(jLabel50, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 140, -1, 20));

        jLabel55.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel55.setText("(Example:02/10/2010) ");
        infoedit.add(jLabel55, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 170, -1, 20));

        editcustomer.add(infoedit, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 11, 797, 710));

        save.setBackground(java.awt.Color.white);
        save.setFont(new java.awt.Font("Purisa", 1, 14));
        save.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/Save Icon.png"))); // NOI18N
        save.setText("SAVE");
        save.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        save.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveActionPerformed(evt);
            }
        });

        cancel1.setBackground(java.awt.Color.white);
        cancel1.setFont(new java.awt.Font("Purisa", 1, 14));
        cancel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/erase.gif"))); // NOI18N
        cancel1.setText(" CANCEL ");
        cancel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        cancel1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancel1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout buttoneditLayout = new javax.swing.GroupLayout(buttonedit);
        buttonedit.setLayout(buttoneditLayout);
        buttoneditLayout.setHorizontalGroup(
            buttoneditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttoneditLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cancel1, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttoneditLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(save, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        buttoneditLayout.setVerticalGroup(
            buttoneditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttoneditLayout.createSequentialGroup()
                .addContainerGap(34, Short.MAX_VALUE)
                .addComponent(save, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(cancel1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(68, 68, 68))
        );

        editcustomer.add(buttonedit, new org.netbeans.lib.awtextra.AbsoluteConstraints(842, 494, -1, -1));

        editcustomer.setBounds(0, 0, 1080, 730);
        jLayeredPane1.add(editcustomer, javax.swing.JLayeredPane.DEFAULT_LAYER);

        MatchingGUI.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel2.setBackground(java.awt.Color.white);
        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "CANDIDATES", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        jPanel2.setOpaque(false);
        jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel9.setFont(new java.awt.Font("Purisa", 1, 14));
        jLabel9.setText("ARE");
        jPanel2.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, -1));

        jLabel10.setFont(new java.awt.Font("Purisa", 1, 14));
        jLabel10.setText("CUSTOMER CODE:");
        jPanel2.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 90, -1, -1));

        jLabel11.setFont(new java.awt.Font("Purisa", 1, 14));
        jLabel11.setText("CUSTOMER NAME:");
        jPanel2.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 120, -1, -1));

        Coode.setFont(new java.awt.Font("DejaVu Sans", 0, 14));
        Coode.setText("xxxxx");
        jPanel2.add(Coode, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 90, 50, 20));

        Naame.setFont(new java.awt.Font("DejaVu Sans", 0, 14));
        Naame.setText("xxxxx");
        jPanel2.add(Naame, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 120, 160, 20));

        jLabel12.setFont(new java.awt.Font("Purisa", 1, 14));
        jLabel12.setText("POSSIBLE CANDIDATES FOR:");
        jPanel2.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, -1, -1));

        jLabel16.setText("REQUIREMENT :");
        jPanel2.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, -1, -1));

        jCheckBox1.setText("RACE");
        jPanel2.add(jCheckBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 210, -1, -1));

        jCheckBox2.setText("RELIGION");
        jPanel2.add(jCheckBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 180, -1, -1));

        jCheckBox3.setText("SALARY");
        jPanel2.add(jCheckBox3, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 180, -1, -1));

        jCheckBox4.setText("EDUCATION");
        jPanel2.add(jCheckBox4, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 180, -1, -1));

        jCheckBox5.setText("GENDER");
        jPanel2.add(jCheckBox5, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 180, -1, -1));

        jCheckBox6.setText("RELATIONSHIP");
        jPanel2.add(jCheckBox6, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 210, -1, -1));

        jCheckBox7.setText("AGE");
        jPanel2.add(jCheckBox7, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 210, -1, -1));

        jTable3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "CUSTOMER CODE", "CUSTOMER NAME"
            }
        ));
        jScrollPane6.setViewportView(jTable3);

        jPanel2.add(jScrollPane6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 290, -1, 360));

        MatchingGUI.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 550, 670));

        jButton2.setBackground(java.awt.Color.white);
        jButton2.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton2.setText("SEARCH");
        jButton2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        MatchingGUI.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 520, 200, 40));

        jButton3.setBackground(java.awt.Color.white);
        jButton3.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton3.setText("     CANCEL     ");
        jButton3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });
        MatchingGUI.add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 620, 200, 40));

        jButton4.setBackground(java.awt.Color.white);
        jButton4.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton4.setText("VIEW CANDIDATE");
        jButton4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });
        MatchingGUI.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 570, 200, 40));
        MatchingGUI.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));

        MatchingGUI.setBounds(0, 0, 1080, 730);
        jLayeredPane1.add(MatchingGUI, javax.swing.JLayeredPane.DEFAULT_LAYER);

        infoview1.setBackground(java.awt.Color.white);
        infoview1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "VIEW CUSTOMER PROFILE", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        infoview1.setOpaque(false);
        infoview1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel18.setFont(new java.awt.Font("Purisa", 1, 18));
        jLabel18.setText("STEP 3: BACKGROUND");
        infoview1.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 590, -1, -1));

        cus_code3.setText("CUSTOMER CODE:");
        infoview1.add(cus_code3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1));

        cus_name3.setText("NAME:");
        infoview1.add(cus_name3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));

        cus_ic3.setText("I/C NUMBER:");
        infoview1.add(cus_ic3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));

        cus_DOB3.setText("D.O.B:");
        infoview1.add(cus_DOB3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, -1, -1));

        cus_contact3.setText("CONTACT:");
        infoview1.add(cus_contact3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, -1));

        cus_address3.setText("ADDRESS:");
        infoview1.add(cus_address3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, -1, -1));

        cus_email3.setText("EMAIL:");
        infoview1.add(cus_email3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 350, -1, -1));

        cus_race3.setText("RACE:");
        infoview1.add(cus_race3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 380, -1, -1));

        cus_religion3.setText("RELIGION:");
        infoview1.add(cus_religion3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 410, -1, -1));

        cus_nation3.setText("NATIONALITY:");
        infoview1.add(cus_nation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 440, -1, -1));
        infoview1.add(cusCode3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 80, 90, -1));
        infoview1.add(cusName3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 110, 200, -1));
        infoview1.add(cusIc3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 140, 200, -1));
        infoview1.add(cusContact3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 260, 200, -1));

        cusAddress3.setRows(5);
        jScrollPane7.setViewportView(cusAddress3);

        infoview1.add(jScrollPane7, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 290, 200, 60));
        infoview1.add(cusEmail3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 360, 210, -1));

        cus_gender3.setText("GENDER:");
        infoview1.add(cus_gender3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, -1, -1));

        cusRace3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RACE>", "MALAY", "CHINESE", "INDIAN", "OTHERS" }));
        infoview1.add(cusRace3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 380, -1, -1));

        cusReligion3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RELIGION>", "ISLAM", "BUDDHISM", "CHRISTIAN", "HINDHUISM", "OTHERS" }));
        infoview1.add(cusReligion3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 410, -1, -1));
        infoview1.add(cusNation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 440, 120, -1));
        infoview1.add(jSeparator16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 580, 400, 10));

        jLabel19.setFont(new java.awt.Font("Purisa", 1, 18));
        jLabel19.setText("STEP 4: CANDIDATE CRITERIA");
        infoview1.add(jLabel19, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 120, -1, -1));

        cus_height3.setText("HEIGHT: (CM)");
        infoview1.add(cus_height3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 520, -1, -1));

        cus_weight3.setText("WEIGHT: (KG)");
        infoview1.add(cus_weight3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 550, -1, -1));
        infoview1.add(jSeparator17, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 110, 400, 10));

        step10.setFont(new java.awt.Font("Purisa", 1, 18));
        step10.setText("STEP 5: OTHERS");
        infoview1.add(step10, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 500, -1, -1));

        cus_occupation3.setText("OCCUPATION:");
        infoview1.add(cus_occupation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 630, -1, -1));

        cus_salary3.setText("SALARY:");
        infoview1.add(cus_salary3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 660, -1, -1));

        cus_education3.setText("EDUCATION:");
        infoview1.add(cus_education3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 50, -1, -1));

        cusOccupation3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cusOccupation3ActionPerformed(evt);
            }
        });
        infoview1.add(cusOccupation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 630, 200, -1));

        cusSalary3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<SALARY>", "<RM1000", "RM1000-RM2000", "RM2001-RM3000", "RM3001-RM4000", "RM4001-RM5000", ">RM5000" }));
        infoview1.add(cusSalary3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 660, -1, -1));

        cusEducation3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<EDUCATION>", "PRIMARY", "SECONDARY", "TERTIARY", "OTHERS" }));
        cusEducation3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cusEducation3ActionPerformed(evt);
            }
        });
        infoview1.add(cusEducation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 50, -1, -1));

        jSeparator18.setOrientation(javax.swing.SwingConstants.VERTICAL);
        infoview1.add(jSeparator18, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 40, 10, 650));

        step11.setFont(new java.awt.Font("Purisa", 1, 18));
        step11.setText("STEP 1: PERSONAL INFO");
        infoview1.add(step11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, -1, -1));

        cusRelationship3.setText("RELATIONSHIP LOOKING FOR:");
        infoview1.add(cusRelationship3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 160, -1, -1));

        can_age3.setText("AGE RANGE:");
        infoview1.add(can_age3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 190, -1, -1));

        can_race3.setText("RACE:");
        infoview1.add(can_race3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 220, -1, -1));

        canRace3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RACE>", "MALAY", "CHINESE", "INDIAN", "OTHERS" }));
        infoview1.add(canRace3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 220, -1, -1));

        can_religion3.setText("RELIGION:");
        infoview1.add(can_religion3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 250, -1, -1));

        canReligion3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<RELIGION>", "ISLAM", "BUDDHISM", "CHRISTIAN", "HINDHUISM", "OTHERS" }));
        infoview1.add(canReligion3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 250, -1, -1));

        can_nation3.setText("NATIONALITY:");
        infoview1.add(can_nation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 280, -1, -1));
        infoview1.add(canNation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 280, 120, -1));

        can_height3.setText("HEIGHT: (CM)");
        infoview1.add(can_height3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 310, -1, -1));

        can_weight3.setText("WEIGHT: (KG)");
        infoview1.add(can_weight3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 340, -1, -1));

        can_occupation3.setText("OCCUPATION:");
        infoview1.add(can_occupation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 370, -1, -1));
        infoview1.add(canOccupation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 370, 200, -1));

        can_salary3.setText("SALARY:");
        infoview1.add(can_salary3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 400, -1, -1));

        canSalary3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<SALARY>", "<RM1000", "RM1000-RM2000", "RM2001-RM3000", "RM3001-RM4000", "RM4001-RM5000", ">RM5000" }));
        infoview1.add(canSalary3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 400, -1, -1));

        can_education3.setText("EDUCATION:");
        infoview1.add(can_education3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 430, -1, -1));

        canEducation3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<EDUCATION>", "PRIMARY", "SECONDARY", "TERTIARY", "OTHERS" }));
        infoview1.add(canEducation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 430, -1, -1));

        can_hobby3.setText("HOBBY:");
        infoview1.add(can_hobby3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 460, -1, -1));
        infoview1.add(canHobby3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 460, 150, -1));

        age_from3.setText("FROM");
        infoview1.add(age_from3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 190, -1, -1));

        age_to3.setText("T0");
        infoview1.add(age_to3, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 190, -1, -1));
        infoview1.add(jSeparator19, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 470, 400, 10));

        step12.setFont(new java.awt.Font("Purisa", 1, 18));
        step12.setText("STEP 2: TRAITS");
        infoview1.add(step12, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 480, -1, -1));

        dating_time3.setText("PREFERRED DATING TIME:");
        infoview1.add(dating_time3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 540, -1, -1));

        dating_location3.setText("PREFERRED DATING LOCATION:");
        infoview1.add(dating_location3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 570, -1, -1));

        cus_invoice_code3.setText("INVOICE CODE:");
        infoview1.add(cus_invoice_code3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 600, -1, -1));

        cus_invoice_date3.setText("INVOICE DATE:");
        infoview1.add(cus_invoice_date3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 630, -1, -1));

        cus_payment3.setText("PAYMENT: (RM)");
        infoview1.add(cus_payment3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 660, -1, -1));

        cus_hobby3.setText("HOBBY:");
        infoview1.add(cus_hobby3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 80, -1, -1));
        infoview1.add(cusHobby3, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 80, 150, -1));
        infoview1.add(jSeparator20, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 490, 400, 10));
        infoview1.add(datingTime3, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 540, 160, -1));
        infoview1.add(datingLocation3, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 570, 160, -1));
        infoview1.add(cusInvoicecode3, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 600, 160, -1));
        infoview1.add(cusPayment3, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 660, 160, -1));
        infoview1.add(cusWeight3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 550, 60, -1));
        infoview1.add(cusHeight3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 520, 60, -1));
        infoview1.add(canWeight3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 340, 70, -1));
        infoview1.add(canHeight3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 310, 70, -1));

        genderFemale3.setText("FEMALE");
        infoview1.add(genderFemale3, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 200, -1, -1));

        genderMale3.setText("MALE");
        infoview1.add(genderMale3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 200, -1, -1));

        relationshipFriendship3.setText("FRIENDSHIP");
        infoview1.add(relationshipFriendship3, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 160, -1, -1));

        relationshipMarriage3.setText("MARRIAGE");
        infoview1.add(relationshipMarriage3, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 160, -1, -1));
        infoview1.add(ageTo3, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 190, 60, -1));
        infoview1.add(ageFrom3, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 190, 50, -1));
        infoview1.add(cusDOB3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 170, 140, -1));
        infoview1.add(invoiceDate3, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 630, 160, -1));
        infoview1.add(cusAge3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 230, 40, -1));

        jLabel20.setText("AGE:");
        infoview1.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, 40, -1));

        closeCase3.setText("CLOSE CASE");
        infoview1.add(closeCase3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 80, -1, -1));

        jLabel21.setText("jLabel8");
        infoview1.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 180, -1, -1));

        jButton9.setBackground(java.awt.Color.white);
        jButton9.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton9.setText("   OK   ");
        jButton9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout buttonview1Layout = new javax.swing.GroupLayout(buttonview1);
        buttonview1.setLayout(buttonview1Layout);
        buttonview1Layout.setHorizontalGroup(
            buttonview1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonview1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        buttonview1Layout.setVerticalGroup(
            buttonview1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttonview1Layout.createSequentialGroup()
                .addGap(75, 75, 75)
                .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(88, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout viewcustomer1Layout = new javax.swing.GroupLayout(viewcustomer1);
        viewcustomer1.setLayout(viewcustomer1Layout);
        viewcustomer1Layout.setHorizontalGroup(
            viewcustomer1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewcustomer1Layout.createSequentialGroup()
                .addGap(881, 881, 881)
                .addComponent(buttonview1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(36, 36, 36))
            .addGroup(viewcustomer1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(viewcustomer1Layout.createSequentialGroup()
                    .addGap(20, 20, 20)
                    .addComponent(infoview1, javax.swing.GroupLayout.PREFERRED_SIZE, 850, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(237, Short.MAX_VALUE)))
        );
        viewcustomer1Layout.setVerticalGroup(
            viewcustomer1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewcustomer1Layout.createSequentialGroup()
                .addContainerGap(505, Short.MAX_VALUE)
                .addComponent(buttonview1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22))
            .addGroup(viewcustomer1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(viewcustomer1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(infoview1, javax.swing.GroupLayout.PREFERRED_SIZE, 700, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(19, Short.MAX_VALUE)))
        );

        viewcustomer1.setBounds(0, 0, 1080, 730);
        jLayeredPane1.add(viewcustomer1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1074, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 726, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
      
//***************************** GETTING CONNECTION *******************************
      public Connection getCon()
     {
       try{
        String driver = "oracle.jdbc.driver.OracleDriver";
        DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
        con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "mms", "mms");
       stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
        System.out.println("connection established");
        }
        catch (Exception e){
            System.out.println("connection error!!");
        }
        return con;
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** CONNECTING DATABASE ******************************
    private void connectDatabase()
    {
        try
        {
            Class.forName("oracle.jdbc.OracleDriver");
            con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "mms", "mms");
        }

        catch (ClassNotFoundException ex)
        {
            Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
        }        catch (SQLException ex)
        {
            Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** RETRIEVING DATA FROM DATABASE ********************
     private ResultSet getResultSet(String doubt)
    {
        connectDatabase();
        ResultSet outcome = null;
        try
        {
            stmt = con.createStatement();
            outcome = stmt.executeQuery(doubt);
        }
        catch (SQLException ex)
        {
            Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
        }
        return outcome;
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** UPDATING THE ROWS ********************************
       private void updateRow(String edit)
    {
        connectDatabase();
        try
        {
            stmt = con.createStatement();
            stmt.executeUpdate(edit);
        }
        catch (SQLException ex)
        {
            Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//****************************** GROUPING RADIO BUTTONS **************************
        private void groupButton( ){
        ButtonGroup bg1 = new ButtonGroup( );
        ButtonGroup bg2 = new ButtonGroup( );
        ButtonGroup bg3 = new ButtonGroup( );
        ButtonGroup bg4 = new ButtonGroup( );
        ButtonGroup bg5 = new ButtonGroup( );
        ButtonGroup bg6 = new ButtonGroup( );
        bg1.add(genderMale);		
        bg1.add(genderFemale);
	bg2.add(relationshipMarriage);	
        bg2.add(relationshipFriendship);
        bg3.add(genderMale2);		
        bg3.add(genderFemale2);
	bg4.add(relationshipMarriage2);	
        bg4.add(relationshipFriendship2);
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~
    
    NewTableModel newtable1 = new NewTableModel();

//***************************** SETTING UP TABLES ********************************
     public void setTable()
    {
        jTable1.setModel(newtable1);
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** DISPLAYING DATA ON THE TABLE *********************
     private void retrieveData()
    {
        jTable1.repaint();

        Dimension THIS_SIZE = (jLayeredPane1.getSize());
        jTable1.setMaximumSize(THIS_SIZE);
        jTable1.setMinimumSize(THIS_SIZE);
        jTable1.setPreferredSize(THIS_SIZE);

        int countRow = 0;
        int countColumn = 0;
        int countRow2 = 0;
        int countColumn2 = 0;
        int count = 0;

        connectDatabase();
        try
        {         
            Statement stmt = con.createStatement();         
            ResultSet rset = stmt.executeQuery("Select* From CUSTOMER");

            while (rset.next())
            {
                countRow++;
            }
            
            ResultSetMetaData metadata = rset.getMetaData();
            countColumn = metadata.getColumnCount();

            newtable1.setDataSize(countRow, 3);
            newtable1.setColumnNameSize();

            DatabaseMetaData meta = con.getMetaData();

            ResultSet rset2 = meta.getColumns(null, null, "CUSTOMER", null);

                newtable1.setColumnName(0,"CUSTOMER CODE");
                newtable1.setColumnName(1,"CUSTOMER NAME");
                newtable1.setColumnName(2,"CUSTOMER IC NUMBER");

            count = 0;

            rset = stmt.executeQuery("Select* From CUSTOMER");
            while(rset.next())
            {
                newtable1.addString(countRow2, countColumn2, rset.getString("CUS_CODE"));
                countColumn2++;
                newtable1.addString(countRow2, countColumn2, rset.getString("CUS_NAME"));
                countColumn2++;
                newtable1.addString(countRow2, countColumn2, rset.getString("CUS_IC"));
                countColumn2++;

                countColumn2 = 0;
                countRow2++;
            }
        }

        catch (Exception e)
        {
        System.out.println("Error");
        }

        this.setTable();

        if(searching == false){
        ListSelectionModel selectionModel = jTable1.getSelectionModel();
        selectionModel.addListSelectionListener(new ListSelectionListener() {

        public void valueChanged(ListSelectionEvent e)
        {
            match.setEnabled(true);
            view.setEnabled(true);
            edit.setEnabled(true);
            delete.setEnabled(true);
        }
        });
        }
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~

    NewTableModel newtable2 = new NewTableModel();

//*************** RETRIEVING DATA FROM DATABASE FOR MATCHING MENU*****************
    private void retrieveData1()
    {
    if(jCheckBox5.isSelected())
    str="where CUS_GENDER<>'"+gender+"'";

    if(jCheckBox1.isSelected())
    str=str+" and CUS_RACE='"+race+"'";

    if(jCheckBox3.isSelected())
    str=str+" and CUS_SALARY='"+salary+"'";

    if(jCheckBox2.isSelected())
    str=str+" and CUS_RELIGION='"+religion+"'";

    if(jCheckBox4.isSelected())
    str=str+" and CUS_ACADEMIC='"+edulvl+"'";

    if(jCheckBox6.isSelected())
    str=str+" and CUS_RELATIONSHIP='"+relation+"'";

    if(jCheckBox7.isSelected())
    str=str+" and CUS_AGE between "+ageL+" and "+ageU;

        int countRow = 0;
        int countColumn = 0;
        int countRow2 = 0;
        int countColumn2 = 0;
        int count = 0;

        connectDatabase();
        try
        {
            Statement stmt = con.createStatement();
            ResultSet rset = stmt.executeQuery("Select * From CUSTOMER "+str);

            while (rset.next())
            {
                countRow++;
            }

            ResultSetMetaData metadata = rset.getMetaData();
            countColumn = metadata.getColumnCount();

            newtable2.setDataSize(countRow, 2);
            newtable2.setColumnNameSize();

            DatabaseMetaData meta = con.getMetaData();

            ResultSet rset2 = meta.getColumns(null, null, "CUSTOMER", null);

                newtable2.setColumnName(0,"CUSTOMER ID");
                newtable2.setColumnName(1,"CUSTOMER NAME");

            count = 0;

            rset = stmt.executeQuery("Select* From CUSTOMER "+str);
            while(rset.next())
            {
                newtable2.addString(countRow2, countColumn2, rset.getString("CUS_CODE"));
                countColumn2++;
                newtable2.addString(countRow2, countColumn2, rset.getString("CUS_NAME"));
                countColumn2++;

                countColumn2 = 0;
                countRow2++;
            }
        }
        catch (Exception e)
        {
        System.out.println("Error");
        }

        jTable3.setModel(newtable2);
        jTable3.show();
        jTable3.repaint();
        Dimension THIS_SIZE = (jLayeredPane1.getSize());
        jTable3.setMaximumSize(THIS_SIZE);
        jTable3.setMinimumSize(THIS_SIZE);
        jTable3.setPreferredSize(THIS_SIZE);
       // newtable2 = new NewTableModel();
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//*********************** SHOWING INFORMATION FOR EDITING ************************
     private void viewEditData()
    {
        connectDatabase();
        try
        {
            cusCode2.setText((String) newtable1.getValueAt(jTable1.getSelectedRow(), 0));
            String CUS_CODE = cusCode2.getText();
            Statement stmt = con.createStatement();

            ResultSet rset = getResultSet("SELECT * FROM CUSTOMER WHERE CUS_CODE='"+CUS_CODE+"'");

            if (rset.next())
            {
                cusAge2.setText(rset.getString("CUS_AGE"));
                cusCode2.setText(rset.getString("CUS_CODE"));
                cusName2.setText(rset.getString("CUS_NAME"));
                cusIc2.setText(rset.getString("CUS_IC"));
                cusDOB2.setText(rset.getString("CUS_DOB"));
                if(rset.getString("CUS_GENDER").equals("MALE"))
                {
                    genderMale2.setSelected(true);
                }
                else
                {
                    genderFemale2.setSelected(true);
                }
                cusContact2.setText(rset.getString("CUS_CONTACT"));
                cusAddress2.setText(rset.getString("CUS_ADD"));
                cusEmail2.setText(rset.getString("CUS_EMAIL"));
                cusRace2.setSelectedItem(rset.getString("CUS_RACE"));
                cusNation2.setText(rset.getString("CUS_NATION"));
                cusReligion2.setSelectedItem(rset.getString("CUS_RELIGION"));
                cusWeight2.setText(rset.getString("CUS_WEIGHT"));
                cusHeight2.setText(rset.getString("CUS_HEIGHT"));
                cusEducation2.setSelectedItem(rset.getString("CUS_ACADEMIC"));
                cusOccupation2.setText(rset.getString("CUS_OCCUPATION"));
                cusSalary2.setSelectedItem(rset.getString("CUS_SALARY"));
                cusHobby2.setText(rset.getString("CUS_HOBBY"));
                datingTime2.setText(rset.getString("CUS_DATETIME"));
                datingLocation2.setText(rset.getString("CUS_DATEPLACE"));
                if(rset.getString("CUS_RELATIONSHIP").equals("MARRIAGE"))
                {
                    relationshipMarriage2.setSelected(true);
                }
                else
                {
                    relationshipFriendship2.setSelected(true);
                }
                ageFrom2.setText(rset.getString("CAN_AGERANGE_L"));
                ageTo2.setText(rset.getString("CAN_AGERANGE_R"));
                canRace2.setSelectedItem(rset.getString("CAN_RACE"));
                canNation2.setText(rset.getString("CAN_NATION"));
                canReligion2.setSelectedItem(rset.getString("CAN_RELIGION"));
                canWeight2.setText(rset.getString("CAN_WEIGHT"));
                canHeight2.setText(rset.getString("CAN_HEIGHT"));
                canEducation2.setSelectedItem(rset.getString("CAN_ACADEMIC"));
                canOccupation2.setText(rset.getString("CAN_OCCUPATION"));
                canSalary2.setSelectedItem(rset.getString("CAN_SALARY"));
                canHobby2.setText(rset.getString("CAN_HOBBY"));
                //closeCase.

               ResultSet rset2 = getResultSet("SELECT INV_DATE,INV_CODE,CUS_PAYMENT FROM SALES WHERE CUS_CODE ='"+CUS_CODE+"'");
                 if (rset2.next())


                invoiceDate2.setText(rset2.getString("INV_DATE"));
                cusInvoicecode2.setText(rset2.getString("INV_CODE"));
                cusPayment2.setText(rset2.getString("CUS_PAYMENT"));
            }
            
            cusInvoicecode2.setEnabled(false);
            invoiceDate2.setEnabled(false);
        }
        catch (SQLException ex)
        {
             
        }
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** SEARCHING DATA ***********************************
     public void searchData(){
         String search1 =searchdataField.getText();
        String searchType = search.getSelectedItem().toString();
        String searchQuery;
        if (searchType.equals("CUSTOMER CODE"))
        {
          searchQuery = "SELECT * FROM CUSTOMER WHERE CUS_CODE='"+search1+"'";
        }
        else
        {
          searchQuery = "SELECT * FROM CUSTOMER WHERE CUS_IC='"+search1+"'";
        }

        jTable1.repaint();

        Dimension THIS_SIZE = (jLayeredPane1.getSize());
        jTable1.setMaximumSize(THIS_SIZE);
        jTable1.setMinimumSize(THIS_SIZE);
        jTable1.setPreferredSize(THIS_SIZE);

        int countRow = 0;
        int countColumn = 0;
        int countRow2 = 0;
        int countColumn2 = 0;
        int count = 0;

        connectDatabase();
        try
        {
            Statement stmt = con.createStatement();
            ResultSet rset = stmt.executeQuery(searchQuery);

            while (rset.next())
            {
                countRow++;
            }

            ResultSetMetaData metadata = rset.getMetaData();
            countColumn = metadata.getColumnCount();

            newtable1.setDataSize(countRow, 3);
            newtable1.setColumnNameSize();

            DatabaseMetaData meta = con.getMetaData();

            ResultSet rset2 = meta.getColumns(null, null, "CUSTOMER", null);

                newtable1.setColumnName(0,"CUSTOMER CODE");
                newtable1.setColumnName(1,"CUSTOMER NAME");
                newtable1.setColumnName(2,"CUSTOMER IC NUMBER");

            count = 0;

            rset = stmt.executeQuery(searchQuery);
            while(rset.next())
            {
                newtable1.addString(countRow2, countColumn2, rset.getString("CUS_CODE"));
                countColumn2++;
                newtable1.addString(countRow2, countColumn2, rset.getString("CUS_NAME"));
                countColumn2++;
                newtable1.addString(countRow2, countColumn2, rset.getString("CUS_IC"));
                countColumn2++;

                countColumn2 = 0;
                countRow2++;
            }
        }

        catch (Exception e)
        {
        System.out.println("Error");
        }

        this.setTable();

        if(searching == true){
        ListSelectionModel selectionModel = jTable1.getSelectionModel();
        selectionModel.addListSelectionListener(new ListSelectionListener() {

        public void valueChanged(ListSelectionEvent e)
        {
            edit.setEnabled(true);
            view.setEnabled(true);
            match.setEnabled(true);
            delete.setEnabled(true);

        }
        });
        }
        if (searchdataField.getText().equals(""))
        {
            searching = false;
            retrieveData();
        }
        else
        {
            searching = true;
            //searchData();
        }
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE SEARCH TEXTFIELD *****************************
    private void searchdataFieldKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_searchdataFieldKeyReleased

        if (searchdataField.getText().equals(""))
        {
            searching = false;
            retrieveData();
        }//end if

        else
        {
            searching = true;
            searchData();
        }//end else

}//GEN-LAST:event_searchdataFieldKeyReleased
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE SEARCH BUTTON ********************************
    private void searchbuttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchbuttonActionPerformed
        searchData();            
}//GEN-LAST:event_searchbuttonActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE EDIT BUTTON **********************************
    private void editActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editActionPerformed

        customerprofile.setVisible(false);
        addcustomer.setVisible(false);
        viewcustomer.setVisible(false);
        editcustomer.setVisible(true);

        viewEditData();
        groupButton();
}//GEN-LAST:event_editActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE ADD BUTTON ***********************************
    private void addnewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addnewActionPerformed
        closeCase1.setEnabled(false);
        closeCase1.setSelected(false);
        
        customerprofile.setVisible(false);
        addcustomer.setVisible(true);
        viewcustomer.setVisible(false);
        editcustomer.setVisible(false);
}//GEN-LAST:event_addnewActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE DELETE BUTTON ********************************
    private void deleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteActionPerformed
         connectDatabase();
         
        try
        {
            cus_code.setText((String) newtable1.getValueAt(jTable1.getSelectedRow(), 0));
            String CUS_CODE = cus_code.getText();
            Statement stmt = con.createStatement();


            ResultSet rset = getResultSet("DELETE FROM CUSTOMER WHERE CUS_CODE='"+CUS_CODE+"'");

            String message = "Are you sure want to delete this user profile ?";
            String title2 = "Confirmation?";
        // display the JOptionPane showConfirmDialog
            int reply = JOptionPane.showConfirmDialog(null, message, title2, JOptionPane.YES_NO_OPTION);
            if (reply == JOptionPane.YES_OPTION)//delete from database once the user click "YES"
        {
            //System.out.print(rset);
            
            JOptionPane.showMessageDialog(null, "Delete successful.");
        }
        else
        {
            JOptionPane.showMessageDialog(null, "Delete aborted.");
        }
        }

        catch (SQLException ex){
        }

        retrieveData();
}//GEN-LAST:event_deleteActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** MAIN MENU PAGE ***********************************
    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        new MainMenu().setVisible(true);
        setVisible(false);
}//GEN-LAST:event_jButton5ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE VIEW BUTTON **********************************
    private void viewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewActionPerformed
        connectDatabase();
        try
        {
            cusCode1.setText((String) newtable1.getValueAt(jTable1.getSelectedRow(), 0));
            String CUS_CODE = cusCode1.getText();
            Statement stmt = con.createStatement();

            ResultSet rset = getResultSet("SELECT * FROM CUSTOMER WHERE CUS_CODE='"+CUS_CODE+"'");

            if (rset.next())
            {
                cusAge1.setText(rset.getString("CUS_AGE"));
                cusCode1.setText(rset.getString("CUS_CODE"));
                cusName1.setText(rset.getString("CUS_NAME"));
                cusIc1.setText(rset.getString("CUS_IC"));
                cusDOB1.setText(rset.getString("CUS_DOB"));
                if(rset.getString("CUS_GENDER").equals("MALE"))
                {
                    genderMale1.setSelected(true);
                }
                else
                {
                    genderFemale1.setSelected(true);
                }
                cusContact1.setText(rset.getString("CUS_CONTACT"));
                cusAddress1.setText(rset.getString("CUS_ADD"));
                cusEmail1.setText(rset.getString("CUS_EMAIL"));
                cusRace1.setSelectedItem(rset.getString("CUS_RACE"));
                cusNation1.setText(rset.getString("CUS_NATION"));
                cusReligion1.setSelectedItem(rset.getString("CUS_RELIGION"));
                cusWeight1.setText(rset.getString("CUS_WEIGHT"));
                cusHeight1.setText(rset.getString("CUS_HEIGHT"));
                cusEducation1.setSelectedItem(rset.getString("CUS_ACADEMIC"));
                cusOccupation1.setText(rset.getString("CUS_OCCUPATION"));
                cusSalary1.setSelectedItem(rset.getString("CUS_SALARY"));
                cusHobby1.setText(rset.getString("CUS_HOBBY"));
                datingTime1.setText(rset.getString("CUS_DATETIME"));
                datingLocation1.setText(rset.getString("CUS_DATEPLACE"));
                if(rset.getString("CUS_RELATIONSHIP").equals("MARRIAGE"))
                {
                    relationshipMarriage1.setSelected(true);
                }
                else
                {
                    relationshipFriendship1.setSelected(true);
                }
                ageFrom1.setText(rset.getString("CAN_AGERANGE_L"));
                ageTo1.setText(rset.getString("CAN_AGERANGE_R"));
                canRace1.setSelectedItem(rset.getString("CAN_RACE"));
                canNation1.setText(rset.getString("CAN_NATION"));
                canReligion1.setSelectedItem(rset.getString("CAN_RELIGION"));
                canWeight1.setText(rset.getString("CAN_WEIGHT"));
                canHeight1.setText(rset.getString("CAN_HEIGHT"));
                canEducation1.setSelectedItem(rset.getString("CAN_ACADEMIC"));
                canOccupation1.setText(rset.getString("CAN_OCCUPATION"));
                canSalary1.setSelectedItem(rset.getString("CAN_SALARY"));
                canHobby1.setText(rset.getString("CAN_HOBBY"));

                ResultSet rset1 = getResultSet("SELECT INV_DATE,INV_CODE,CUS_PAYMENT FROM SALES WHERE CUS_CODE='"+CUS_CODE+"'");

                while (rset1.next()){
                invoiceDate1.setText(rset1.getString("INV_DATE"));
                cusInvoicecode1.setText(rset1.getString("INV_CODE"));
                cusPayment1.setText(rset1.getString("CUS_PAYMENT"));
                }

        }}
       catch (SQLException ex){
        {
             System.out.println("Error in displaying information");
        }        
    }
                closeCase2.setEnabled(false);
                closeCase2.setSelected(false);
                cusCode1.setEnabled(false);
                cusName1.setEnabled(false);
                cusIc1.setEnabled(false);
                cusDOB1.setEnabled(false);
                genderMale1.setEnabled(false);
                genderFemale1.setEnabled(false);
                cusContact1.setEnabled(false);
                cusAddress1.setEnabled(false);
                cusEmail1.setEnabled(false);
                cusRace1.setEnabled(false);
                cusNation1.setEnabled(false);
                cusReligion1.setEnabled(false);
                cusWeight1.setEnabled(false);
                cusHeight1.setEnabled(false);
                cusEducation1.setEnabled(false);
                cusOccupation1.setEnabled(false);
                cusSalary1.setEnabled(false);
                cusHobby1.setEnabled(false);
                datingTime1.setEnabled(false);
                datingLocation1.setEnabled(false);
                relationshipMarriage1.setEnabled(false);
                relationshipFriendship1.setEnabled(false);
                ageFrom1.setEnabled(false);
                ageTo1.setEnabled(false);
                canRace1.setEnabled(false);
                canNation1.setEnabled(false);
                canReligion1.setEnabled(false);
                canWeight1.setEnabled(false);
                canHeight1.setEnabled(false);
                canEducation1.setEnabled(false);
                canOccupation1.setEnabled(false);
                canSalary1.setEnabled(false);
                canHobby1.setEnabled(false);
                cusInvoicecode1.setEnabled(false);
                cusAge1.setEnabled(false);
                invoiceDate1.setEnabled(false);
                cusPayment1.setEnabled(false);
        
                customerprofile.setVisible(false);
                addcustomer.setVisible(false);
                viewcustomer.setVisible(true);
                editcustomer.setVisible(false);
}//GEN-LAST:event_viewActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** ADDING INFORMATION *******************************
    private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed
  
        String CUS_AGE = cusAge.getText().trim();
        String CUS_CODE = cusCode.getText().trim();
        String CUS_NAME = cusName.getText().trim();
        String CUS_IC = cusIc.getText().trim();
        String DOB = cusDOB.getText().trim();
        String CUS_GENDER;

        if(genderMale.getActionCommand().equals("MALE"))
                {
                    CUS_GENDER = "MALE" ;
                }
                else
                {
                    CUS_GENDER = "FEMALE" ;
                }

        String CUS_CONTACT = cusContact.getText().trim();
        String CUS_ADDRESS = cusAddress.getText().trim();
        String CUS_EMAIL = cusEmail.getText().trim();
        String CUS_RACE = (String) cusRace.getSelectedItem();
        String CUS_RELIGION = (String) cusReligion.getSelectedItem();
        String CUS_NATION = cusNation.getText().trim();
        String CUS_HEIGHT = cusHeight.getText().trim();
        String CUS_WEIGHT = cusWeight.getText().trim();
        String CUS_OCCU = cusOccupation.getText().trim();
        String CUS_SALARY = (String) cusSalary.getSelectedItem();
        String CUS_EDU = (String) cusEducation.getSelectedItem();
        String CUS_HOBBY = cusHobby.getText().trim();
        String CUS_RELATIONSHIP ;

        if(relationshipMarriage.getActionCommand().equals("MARRIAGE"))
                {
                    CUS_RELATIONSHIP = "MARRIAGE" ;
                }
                else
                {
                    CUS_RELATIONSHIP = "FRIENDSHIP" ;
                }

        String AGE_FROM = ageFrom.getText().trim();
        String AGE_TO = ageTo.getText().trim();
        String CAN_RACE = (String) canRace.getSelectedItem();
        String CAN_RELIGION = (String) canReligion.getSelectedItem();
        String CAN_NATION = canNation.getText().trim();
        String CAN_HEIGHT = canHeight.getText().trim();
        String CAN_WEIGHT = canWeight.getText().trim();
        String CAN_OCCU = canOccupation.getText().trim();
        String CAN_SALARY = (String) canSalary.getSelectedItem();
        String CAN_EDU = (String) canEducation.getSelectedItem();
        String CAN_HOBBY = canHobby.getText().trim();
        String DATING_TIME = datingTime.getText().trim();
        String DATING_LOCATION = datingLocation.getText().trim();
        String CUS_INVOICE_CODE = cusInvoicecode.getText().trim();
        
        String invoice = invoiceDate.getText().trim();
        String CUS_PAYMENT = cusPayment.getText().trim();

        String EMP_CODE = LoginPage.getUsername;
        String query = "INSERT INTO CUSTOMER VALUES('"+ CUS_CODE +"','"+CUS_NAME +"','"+ CUS_IC +"',"+
                        "'"+CUS_GENDER +"','"+DOB+"',"+
                        "'"+ CUS_CONTACT+"','"+CUS_ADDRESS+"','"+CUS_EMAIL+"','"+CUS_RACE+"',"+
                        "'"+ CUS_NATION+"','"+CUS_RELIGION+"','"+CUS_WEIGHT+"','"+CUS_HEIGHT+"',"+
                        "'"+ CUS_EDU+"','"+CUS_OCCU+"','"+CUS_SALARY+"','"+CUS_HOBBY+"',"+
                        "'"+ DATING_TIME+"','"+DATING_LOCATION+"','"+CUS_RELATIONSHIP+"','"+AGE_FROM+"','"+AGE_TO+"',"+
                        "'"+ CAN_RACE+"','"+CAN_NATION+"','"+CAN_RELIGION+"','"+CAN_WEIGHT+"','"+CAN_HEIGHT+"',"+
                        "'"+ CAN_EDU+"','"+CAN_OCCU+"','"+CAN_SALARY+"','"+CAN_HOBBY+"','"+CUS_AGE+"','OPEN','"+EMP_CODE+"')";
                       
        String query1 = "INSERT INTO SALES VALUES('"+CUS_INVOICE_CODE +"','"+invoice +"','"+ CUS_PAYMENT+"','"+CUS_CODE+"')";
                        

        String message = "Do you want to add a new detail ?";
        String TITLE = "Confirmation?";
        // display the JOptionPane showConfirmDialog
        int reply = JOptionPane.showConfirmDialog(null, message, TITLE, JOptionPane.YES_NO_OPTION);
        if (reply == JOptionPane.YES_OPTION)//save to database once the user click "YES"
        {

            System.out.print(query);
            System.out.print(query1);

             connectDatabase();

       if( (!(Integer.parseInt(AGE_TO)<Integer.parseInt(AGE_FROM)))
           && (cusRace.getSelectedItem()!= "<RACE>")
           && (cusReligion.getSelectedItem()!="<RELIGION>")
           && (cusSalary.getSelectedItem()!="<SALARY>")
           && (cusEducation.getSelectedItem()!="<EDUCATION>")
           && (canRace.getSelectedItem()!="<RACE>")
           && (canReligion.getSelectedItem()!="<RELIGION>")
           && (canSalary.getSelectedItem()!="<SALARY>")
           && (canEducation.getSelectedItem()!="<EDUCATION>")
          ) {
             try
            {
                stmt = con.createStatement();
                stmt.executeUpdate(query);
                stmt.executeUpdate(query1);
                JOptionPane.showMessageDialog(null, "Add successful.");
            }
            catch (SQLException ex)
            {
                JOptionPane.showMessageDialog(null, "Add failed.");
                Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);
            }
             groupButton( );
             retrieveData();
       }

        else if((Integer.parseInt(AGE_TO)<Integer.parseInt(AGE_FROM)) 
           || (cusRace.getSelectedItem()== "<RACE>")
           || (cusReligion.getSelectedItem()=="<RELIGION>")
           || (cusSalary.getSelectedItem()=="<SALARY>")
           || (cusEducation.getSelectedItem()=="<EDUCATION>")
           || (canRace.getSelectedItem()=="<RACE>")
           || (canReligion.getSelectedItem()=="<RELIGION>")
           || (canSalary.getSelectedItem()=="<SALARY>")
           || (canEducation.getSelectedItem()=="<EDUCATION>")
               ) {
            JOptionPane.showMessageDialog(null, "Invalid input.", "ERROR!", JOptionPane.WARNING_MESSAGE);
        }
         }   
    }//GEN-LAST:event_addActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//********************* THE CANCEL BUTTON IN ADD MENU ****************************
    private void cancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelActionPerformed
        customerprofile.setVisible(true);
        addcustomer.setVisible(false);
}//GEN-LAST:event_cancelActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



    private void cusOccupationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cusOccupationActionPerformed
     
}//GEN-LAST:event_cusOccupationActionPerformed

    private void cusEducationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cusEducationActionPerformed
        
}//GEN-LAST:event_cusEducationActionPerformed

    private void cusOccupation1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cusOccupation1ActionPerformed
        
    }//GEN-LAST:event_cusOccupation1ActionPerformed

    private void cusEducation1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cusEducation1ActionPerformed
        
    }//GEN-LAST:event_cusEducation1ActionPerformed

    private void cusOccupation2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cusOccupation2ActionPerformed
        
    }//GEN-LAST:event_cusOccupation2ActionPerformed

    private void cusEducation2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cusEducation2ActionPerformed
      
    }//GEN-LAST:event_cusEducation2ActionPerformed

//********************** THE CANCEL BUTTON IN EDIT MENU ***************************
    private void cancel1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancel1ActionPerformed
        customerprofile.setVisible(true);
        editcustomer.setVisible(false);          
}//GEN-LAST:event_cancel1ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** EDITING INFORMATION ******************************
    private void saveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveActionPerformed
        String CUS_AGE = cusAge2.getText();
        String CUS_CODE = cusCode2.getText();
        String CUS_NAME = cusName2.getText();
        String CUS_IC = cusIc2.getText();
        String DOB = cusDOB2.getText();
        String CUS_GENDER;
        if(genderMale2.isSelected() == true)
                {
                    CUS_GENDER = "MALE" ;
                }
                else
                {
                    CUS_GENDER = "FEMALE" ;
                }
        String CUS_CONTACT = cusContact2.getText();
        String CUS_ADDRESS = cusAddress2.getText();
        String CUS_EMAIL = cusEmail2.getText();
        String CUS_RACE = (String) cusRace2.getSelectedItem();
        String CUS_RELIGION = (String) cusReligion2.getSelectedItem();
        String CUS_NATION = cusNation2.getText();
        String CUS_HEIGHT = cusHeight2.getText() ;
        String CUS_WEIGHT = cusWeight2.getText();
        String CUS_OCCU = cusOccupation2.getText();
        String CUS_SALARY = (String) cusSalary2.getSelectedItem();
        String CUS_EDU = (String) cusEducation2.getSelectedItem();
        String CUS_HOBBY = cusHobby2.getText();
        String CUS_RELATIONSHIP ;
        if(relationshipMarriage2.isSelected() == true)
                {
                    CUS_RELATIONSHIP = "MARRIAGE" ;
                }
                else
                {
                    CUS_RELATIONSHIP = "FRIENDSHIP" ;
                }

        String AGE_FROM = ageFrom2.getText();
        String AGE_TO = ageTo2.getText();
        String CAN_RACE = (String) canRace2.getSelectedItem();
        String CAN_RELIGION = (String) canReligion2.getSelectedItem();
        String CAN_NATION = canNation2.getText();
        String CAN_HEIGHT = canHeight2.getText();
        String CAN_WEIGHT = canWeight2.getText();
        String CAN_OCCU = canOccupation2.getText();
        String CAN_SALARY = (String) canSalary2.getSelectedItem();
        String CAN_EDU = (String) canEducation2.getSelectedItem();
        String CAN_HOBBY = canHobby2.getText();
        String DATING_TIME = datingTime2.getText();
        String DATING_LOCATION = datingLocation2.getText();
        String CUS_INVOICE_CODE = cusInvoicecode2.getText();
        String invoice = invoiceDate2.getText();
        String CUS_PAYMENT = cusPayment2.getText();
        String CUS_CASE = null ;
        if(closeCase.isSelected())
        {
            CUS_CASE="CLOSE";
    }
        String updateQuery="UPDATE CUSTOMER SET CUS_NAME='"+CUS_NAME+"', CUS_IC='"+CUS_IC+"',"
                + "CUS_DOB='"+DOB+"', CUS_GENDER='"+CUS_GENDER+"',CUS_CONTACT='"+CUS_CONTACT+"',CUS_RELIGION='"+CUS_RELIGION+"',CUS_RACE='"+CUS_RACE+"', CUS_ADD='"+CUS_ADDRESS+"',CUS_NATION='"+CUS_NATION+"',CUS_EMAIL='"+CUS_EMAIL+"', "
                 + "CUS_WEIGHT='"+CUS_WEIGHT+"',CUS_HEIGHT='"+CUS_HEIGHT+"', CUS_ACADEMIC='"+CUS_EDU+"',CUS_SALARY='"+CUS_SALARY+"',CUS_RELATIONSHIP='"+CUS_RELATIONSHIP+"',CUS_HOBBY='"+CUS_HOBBY+"', CUS_DATETIME='"+DATING_TIME+"',"
                 + "CUS_DATEPLACE='"+DATING_LOCATION+"',CAN_AGERANGE_L='"+AGE_FROM+"', CAN_AGERANGE_R='"+AGE_TO+"',CAN_RACE='"+CAN_RACE+"',CAN_RELIGION='"+CAN_RELIGION+"',CAN_NATION='"+CAN_NATION+"', CAN_HEIGHT='"+CAN_HEIGHT+"',"
                  + "CAN_WEIGHT='"+CAN_WEIGHT+"',CAN_ACADEMIC='"+CAN_EDU+"', CAN_OCCUPATION='"+CAN_OCCU+"',CAN_SALARY='"+CAN_SALARY+"',CAN_HOBBY='"+CAN_HOBBY+"',CUS_CASE='"+CUS_CASE+"', CUS_AGE='"+CUS_AGE+"' WHERE CUS_CODE='"+CUS_CODE+"'";

        String updateQuery1="UPDATE SALES SET CUS_PAYMENT='"+CUS_PAYMENT+"' WHERE INV_CODE='"+ CUS_INVOICE_CODE+"'";
      
     
        String message = "Do you want to edit detail ?";
        String TITLE = "Confirmation?";

        System.out.println(updateQuery);
        System.out.println(updateQuery1);
        connectDatabase();

        /*if( (!(Integer.parseInt(AGE_TO)<Integer.parseInt(AGE_FROM)))
           && (cusRace.getSelectedItem()!= "<RACE>")
           && (cusReligion.getSelectedItem()!="<RELIGION>")
           && (cusSalary.getSelectedItem()!="<SALARY>")
           && (cusEducation.getSelectedItem()!="<EDUCATION>")
           && (canRace.getSelectedItem()!="<RACE>")
           && (canReligion.getSelectedItem()!="<RELIGION>")
           && (canSalary.getSelectedItem()!="<SALARY>")
           && (canEducation.getSelectedItem()!="<EDUCATION>")
          )   */ 

         try
         {
            Statement stmt = con.createStatement();
            stmt.executeUpdate(updateQuery);
            stmt.executeUpdate(updateQuery1);

            JOptionPane.showMessageDialog(null, "Edit successful.");
          }
            catch (Exception e)
            {
                 JOptionPane.showMessageDialog(null, "Edit failled!!.");
            }


          retrieveData();
        
         /*   else if((Integer.parseInt(AGE_TO)<Integer.parseInt(AGE_FROM))
           || (cusRace.getSelectedItem()== "<RACE>")
           || (cusReligion.getSelectedItem()=="<RELIGION>")
           || (cusSalary.getSelectedItem()=="<SALARY>")
           || (cusEducation.getSelectedItem()=="<EDUCATION>")
           || (canRace.getSelectedItem()=="<RACE>")
           || (canReligion.getSelectedItem()=="<RELIGION>")
           || (canSalary.getSelectedItem()=="<SALARY>")
           || (canEducation.getSelectedItem()=="<EDUCATION>")
               ) {
            JOptionPane.showMessageDialog(null, "Invalid input.", "ERROR!", JOptionPane.WARNING_MESSAGE);
        }
*/
    
        customerprofile.setVisible(true);
        editcustomer.setVisible(false);       
}//GEN-LAST:event_saveActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//************************ THE CANCEL BUTTON IN VIEW MENU ************************
    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        customerprofile.setVisible(true);
        viewcustomer.setVisible(false);
}//GEN-LAST:event_jButton8ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE MATCH BUTTON *********************************
    private void matchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_matchActionPerformed
      MatchingGUI.setVisible(true);
      customerprofile.setVisible(false);

        String code=(String) newtable1.getValueAt(jTable1.getSelectedRow(), 0);

        try{
            DriverManager.registerDriver( new oracle.jdbc.OracleDriver());
            Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "mms", "mms");
            Statement statement = con.createStatement();
            ResultSet rset;
            rset=statement.executeQuery("select CUS_NAME,CUS_GENDER from CUSTOMER where CUS_CODE='"+code+"'");
            while(rset.next())
            {
                gender=rset.getString("CUS_GENDER");
                System.out.println(gender);
                name=rset.getString("CUS_NAME");
            }
            Coode.setText(code);
            Naame.setText(name);

            rset=statement.executeQuery("select CAN_RACE,CAN_RELIGION,CAN_ACADEMIC,CAN_SALARY,CUS_RELATIONSHIP,CAN_AGERANGE_L,CAN_AGERANGE_R from CUSTOMER where CUS_CODE='"+code+"'");

            while(rset.next())
            {
                race=rset.getString("CAN_RACE");
                religion=rset.getString("CAN_RELIGION");
                salary=rset.getString("CAN_SALARY");
                relation=rset.getString("CUS_RELATIONSHIP");
                edulvl=rset.getString("CAN_ACADEMIC");
                ageL=rset.getString("CAN_AGERANGE_L");
                ageU=rset.getString("CAN_AGERANGE_R");
            }
            }
            catch(Exception e){
            }

            jCheckBox5.setSelected(true);
    }//GEN-LAST:event_matchActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~

    private void jTable1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTable1KeyReleased
        
    }//GEN-LAST:event_jTable1KeyReleased

//***************************** THE MATCH BUTTONG ********************************
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
         retrieveData1();
}//GEN-LAST:event_jButton2ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//****************************** VIEW CANDIDATE **********************************
    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        MatchingGUI.setVisible(false);
        customerprofile.setVisible(true);
}//GEN-LAST:event_jButton3ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//********************** THE SEARCH BUTTON IN MATCHING MODULE ********************
    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        viewcustomer1.setVisible(true);
        MatchingGUI.setVisible(false);

        connectDatabase();
        try {
            cusCode3.setText((String) newtable2.getValueAt(jTable3.getSelectedRow(), 0));
            String CUS_CODE = cusCode3.getText();
            Statement stmt = con.createStatement();

            ResultSet rset = getResultSet("SELECT * FROM CUSTOMER WHERE CUS_CODE='"+CUS_CODE+"'");

            if (rset.next()) {
                cusAge3.setText(rset.getString("CUS_AGE"));
                cusCode3.setText(rset.getString("CUS_CODE"));
                cusName3.setText(rset.getString("CUS_NAME"));
                cusIc3.setText(rset.getString("CUS_IC"));
                cusDOB3.setText(rset.getString("CUS_DOB"));

                if(rset.getString("CUS_GENDER").equals("MALE")) {
                    genderMale3.setSelected(true);
                }

                else {
                    genderFemale3.setSelected(true);
                }

                cusContact3.setText(rset.getString("CUS_CONTACT"));
                cusAddress3.setText(rset.getString("CUS_ADD"));
                cusEmail3.setText(rset.getString("CUS_EMAIL"));
                cusRace3.setSelectedItem(rset.getString("CUS_RACE"));
                cusNation3.setText(rset.getString("CUS_NATION"));
                cusReligion3.setSelectedItem(rset.getString("CUS_RELIGION"));
                cusWeight3.setText(rset.getString("CUS_WEIGHT"));
                cusHeight3.setText(rset.getString("CUS_HEIGHT"));
                cusEducation3.setSelectedItem(rset.getString("CUS_ACADEMIC"));
                cusOccupation3.setText(rset.getString("CUS_OCCUPATION"));
                cusSalary3.setSelectedItem(rset.getString("CUS_SALARY"));
                cusHobby3.setText(rset.getString("CUS_HOBBY"));
                datingTime3.setText(rset.getString("CUS_DATETIME"));
                datingLocation3.setText(rset.getString("CUS_DATEPLACE"));

                if(rset.getString("CUS_RELATIONSHIP").equals("MARRIAGE")) {
                    relationshipMarriage3.setSelected(true);
                }

                else {
                    relationshipFriendship3.setSelected(true);
                }

                ageFrom3.setText(rset.getString("CAN_AGERANGE_L"));
                ageTo3.setText(rset.getString("CAN_AGERANGE_R"));
                canRace3.setSelectedItem(rset.getString("CAN_RACE"));
                canNation3.setText(rset.getString("CAN_NATION"));
                canReligion3.setSelectedItem(rset.getString("CAN_RELIGION"));
                canWeight3.setText(rset.getString("CAN_WEIGHT"));
                canHeight3.setText(rset.getString("CAN_HEIGHT"));
                canEducation3.setSelectedItem(rset.getString("CAN_ACADEMIC"));
                canOccupation3.setText(rset.getString("CAN_OCCUPATION"));
                canSalary3.setSelectedItem(rset.getString("CAN_SALARY"));
                canHobby3.setText(rset.getString("CAN_HOBBY"));

                ResultSet rset1 = getResultSet("SELECT INV_DATE,INV_CODE,CUS_PAYMENT FROM SALES WHERE CUS_CODE='"+CUS_CODE+"'");

                while (rset1.next()){
                    invoiceDate3.setText(rset1.getString("INV_DATE"));
                    cusInvoicecode3.setText(rset1.getString("INV_CODE"));
                    cusPayment3.setText(rset1.getString("CUS_PAYMENT"));
                }


            }}
            catch (SQLException ex){
                {
                    System.out.println("Error in displaying information");
                }
            }

        cusCode3.setEnabled(false);
        cusName3.setEnabled(false);
        cusIc3.setEnabled(false);
        cusDOB3.setEnabled(false);
        genderMale3.setEnabled(false);
        genderFemale3.setEnabled(false);
        cusContact3.setEnabled(false);
        cusAddress3.setEnabled(false);
        cusEmail3.setEnabled(false);
        cusRace3.setEnabled(false);
        cusNation3.setEnabled(false);
        cusReligion3.setEnabled(false);
        cusWeight3.setEnabled(false);
        cusHeight3.setEnabled(false);
        cusEducation3.setEnabled(false);
        cusOccupation3.setEnabled(false);
        cusSalary3.setEnabled(false);
        cusHobby3.setEnabled(false);
        datingTime3.setEnabled(false);
        datingLocation3.setEnabled(false);
        relationshipMarriage3.setEnabled(false);
        relationshipFriendship3.setEnabled(false);
        ageFrom3.setEnabled(false);
        ageTo3.setEnabled(false);
        canRace3.setEnabled(false);
        canNation3.setEnabled(false);
        canReligion3.setEnabled(false);
        canWeight3.setEnabled(false);
        canHeight3.setEnabled(false);
        canEducation3.setEnabled(false);
        canOccupation3.setEnabled(false);
        canSalary3.setEnabled(false);
        canHobby3.setEnabled(false);
        cusInvoicecode3.setEnabled(false);
        cusAge3.setEnabled(false);
        invoiceDate3.setEnabled(false);
        cusPayment3.setEnabled(false);
}//GEN-LAST:event_jButton4ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~

    private void cusOccupation3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cusOccupation3ActionPerformed
        
}//GEN-LAST:event_cusOccupation3ActionPerformed

    private void cusEducation3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cusEducation3ActionPerformed
      
}//GEN-LAST:event_cusEducation3ActionPerformed

//********************** THE CANCEL BUTTON IN VIEW CANDIDATE PAGE ****************
    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        viewcustomer1.setVisible(false);
        MatchingGUI.setVisible(true);
}//GEN-LAST:event_jButton9ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~
    
    
    //add payment button
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Customer().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Coode;
    private javax.swing.JPanel MatchingGUI;
    private javax.swing.JLabel Naame;
    private javax.swing.JButton add;
    private javax.swing.JPanel addcustomer;
    private javax.swing.JButton addnew;
    private javax.swing.JTextField ageFrom;
    private javax.swing.JTextField ageFrom1;
    private javax.swing.JTextField ageFrom2;
    private javax.swing.JTextField ageFrom3;
    private javax.swing.JTextField ageTo;
    private javax.swing.JTextField ageTo1;
    private javax.swing.JTextField ageTo2;
    private javax.swing.JTextField ageTo3;
    private javax.swing.JLabel age_from;
    private javax.swing.JLabel age_from1;
    private javax.swing.JLabel age_from2;
    private javax.swing.JLabel age_from3;
    private javax.swing.JLabel age_to;
    private javax.swing.JLabel age_to1;
    private javax.swing.JLabel age_to2;
    private javax.swing.JLabel age_to3;
    private javax.swing.JPanel button;
    private javax.swing.JPanel buttonadd;
    private javax.swing.JPanel buttonedit;
    private javax.swing.JPanel buttonview;
    private javax.swing.JPanel buttonview1;
    private javax.swing.JComboBox canEducation;
    private javax.swing.JComboBox canEducation1;
    private javax.swing.JComboBox canEducation2;
    private javax.swing.JComboBox canEducation3;
    private javax.swing.JTextField canHeight;
    private javax.swing.JTextField canHeight1;
    private javax.swing.JTextField canHeight2;
    private javax.swing.JTextField canHeight3;
    private javax.swing.JTextField canHobby;
    private javax.swing.JTextField canHobby1;
    private javax.swing.JTextField canHobby2;
    private javax.swing.JTextField canHobby3;
    private javax.swing.JTextField canNation;
    private javax.swing.JTextField canNation1;
    private javax.swing.JTextField canNation2;
    private javax.swing.JTextField canNation3;
    private javax.swing.JTextField canOccupation;
    private javax.swing.JTextField canOccupation1;
    private javax.swing.JTextField canOccupation2;
    private javax.swing.JTextField canOccupation3;
    private javax.swing.JComboBox canRace;
    private javax.swing.JComboBox canRace1;
    private javax.swing.JComboBox canRace2;
    private javax.swing.JComboBox canRace3;
    private javax.swing.JComboBox canReligion;
    private javax.swing.JComboBox canReligion1;
    private javax.swing.JComboBox canReligion2;
    private javax.swing.JComboBox canReligion3;
    private javax.swing.JComboBox canSalary;
    private javax.swing.JComboBox canSalary1;
    private javax.swing.JComboBox canSalary2;
    private javax.swing.JComboBox canSalary3;
    private javax.swing.JTextField canWeight;
    private javax.swing.JTextField canWeight1;
    private javax.swing.JTextField canWeight2;
    private javax.swing.JTextField canWeight3;
    private javax.swing.JLabel can_age;
    private javax.swing.JLabel can_age1;
    private javax.swing.JLabel can_age2;
    private javax.swing.JLabel can_age3;
    private javax.swing.JLabel can_education;
    private javax.swing.JLabel can_education1;
    private javax.swing.JLabel can_education2;
    private javax.swing.JLabel can_education3;
    private javax.swing.JLabel can_height;
    private javax.swing.JLabel can_height1;
    private javax.swing.JLabel can_height2;
    private javax.swing.JLabel can_height3;
    private javax.swing.JLabel can_hobby;
    private javax.swing.JLabel can_hobby1;
    private javax.swing.JLabel can_hobby2;
    private javax.swing.JLabel can_hobby3;
    private javax.swing.JLabel can_nation;
    private javax.swing.JLabel can_nation1;
    private javax.swing.JLabel can_nation2;
    private javax.swing.JLabel can_nation3;
    private javax.swing.JLabel can_occupation;
    private javax.swing.JLabel can_occupation1;
    private javax.swing.JLabel can_occupation2;
    private javax.swing.JLabel can_occupation3;
    private javax.swing.JLabel can_race;
    private javax.swing.JLabel can_race1;
    private javax.swing.JLabel can_race2;
    private javax.swing.JLabel can_race3;
    private javax.swing.JLabel can_religion;
    private javax.swing.JLabel can_religion1;
    private javax.swing.JLabel can_religion2;
    private javax.swing.JLabel can_religion3;
    private javax.swing.JLabel can_salary;
    private javax.swing.JLabel can_salary1;
    private javax.swing.JLabel can_salary2;
    private javax.swing.JLabel can_salary3;
    private javax.swing.JLabel can_weight;
    private javax.swing.JLabel can_weight1;
    private javax.swing.JLabel can_weight2;
    private javax.swing.JLabel can_weight3;
    private javax.swing.JButton cancel;
    private javax.swing.JButton cancel1;
    private javax.swing.JCheckBox closeCase;
    private javax.swing.JCheckBox closeCase1;
    private javax.swing.JCheckBox closeCase2;
    private javax.swing.JCheckBox closeCase3;
    private javax.swing.JTextArea cusAddress;
    private javax.swing.JTextArea cusAddress1;
    private javax.swing.JTextArea cusAddress2;
    private javax.swing.JTextArea cusAddress3;
    private javax.swing.JTextField cusAge;
    private javax.swing.JTextField cusAge1;
    private javax.swing.JTextField cusAge2;
    private javax.swing.JTextField cusAge3;
    private javax.swing.JTextField cusCode;
    private javax.swing.JTextField cusCode1;
    private javax.swing.JTextField cusCode2;
    private javax.swing.JTextField cusCode3;
    private javax.swing.JTextField cusContact;
    private javax.swing.JTextField cusContact1;
    private javax.swing.JTextField cusContact2;
    private javax.swing.JTextField cusContact3;
    private javax.swing.JFormattedTextField cusDOB;
    private javax.swing.JFormattedTextField cusDOB1;
    private javax.swing.JFormattedTextField cusDOB2;
    private javax.swing.JFormattedTextField cusDOB3;
    private javax.swing.JComboBox cusEducation;
    private javax.swing.JComboBox cusEducation1;
    private javax.swing.JComboBox cusEducation2;
    private javax.swing.JComboBox cusEducation3;
    private javax.swing.JTextField cusEmail;
    private javax.swing.JTextField cusEmail1;
    private javax.swing.JTextField cusEmail2;
    private javax.swing.JTextField cusEmail3;
    private javax.swing.JTextField cusHeight;
    private javax.swing.JTextField cusHeight1;
    private javax.swing.JTextField cusHeight2;
    private javax.swing.JTextField cusHeight3;
    private javax.swing.JTextField cusHobby;
    private javax.swing.JTextField cusHobby1;
    private javax.swing.JTextField cusHobby2;
    private javax.swing.JTextField cusHobby3;
    private javax.swing.JTextField cusIc;
    private javax.swing.JTextField cusIc1;
    private javax.swing.JTextField cusIc2;
    private javax.swing.JTextField cusIc3;
    private javax.swing.JTextField cusInvoicecode;
    private javax.swing.JTextField cusInvoicecode1;
    private javax.swing.JTextField cusInvoicecode2;
    private javax.swing.JTextField cusInvoicecode3;
    private javax.swing.JTextField cusName;
    private javax.swing.JTextField cusName1;
    private javax.swing.JTextField cusName2;
    private javax.swing.JTextField cusName3;
    private javax.swing.JTextField cusNation;
    private javax.swing.JTextField cusNation1;
    private javax.swing.JTextField cusNation2;
    private javax.swing.JTextField cusNation3;
    private javax.swing.JTextField cusOccupation;
    private javax.swing.JTextField cusOccupation1;
    private javax.swing.JTextField cusOccupation2;
    private javax.swing.JTextField cusOccupation3;
    private javax.swing.JTextField cusPayment;
    private javax.swing.JTextField cusPayment1;
    private javax.swing.JTextField cusPayment2;
    private javax.swing.JTextField cusPayment3;
    private javax.swing.JComboBox cusRace;
    private javax.swing.JComboBox cusRace1;
    private javax.swing.JComboBox cusRace2;
    private javax.swing.JComboBox cusRace3;
    private javax.swing.JLabel cusRelationship;
    private javax.swing.JLabel cusRelationship1;
    private javax.swing.JLabel cusRelationship2;
    private javax.swing.JLabel cusRelationship3;
    private javax.swing.JComboBox cusReligion;
    private javax.swing.JComboBox cusReligion1;
    private javax.swing.JComboBox cusReligion2;
    private javax.swing.JComboBox cusReligion3;
    private javax.swing.JComboBox cusSalary;
    private javax.swing.JComboBox cusSalary1;
    private javax.swing.JComboBox cusSalary2;
    private javax.swing.JComboBox cusSalary3;
    private javax.swing.JTextField cusWeight;
    private javax.swing.JTextField cusWeight1;
    private javax.swing.JTextField cusWeight2;
    private javax.swing.JTextField cusWeight3;
    private javax.swing.JLabel cus_DOB;
    private javax.swing.JLabel cus_DOB1;
    private javax.swing.JLabel cus_DOB2;
    private javax.swing.JLabel cus_DOB3;
    private javax.swing.JLabel cus_address;
    private javax.swing.JLabel cus_address1;
    private javax.swing.JLabel cus_address2;
    private javax.swing.JLabel cus_address3;
    private javax.swing.JLabel cus_code;
    private javax.swing.JLabel cus_code1;
    private javax.swing.JLabel cus_code2;
    private javax.swing.JLabel cus_code3;
    private javax.swing.JLabel cus_contact;
    private javax.swing.JLabel cus_contact1;
    private javax.swing.JLabel cus_contact2;
    private javax.swing.JLabel cus_contact3;
    private javax.swing.JLabel cus_education;
    private javax.swing.JLabel cus_education1;
    private javax.swing.JLabel cus_education2;
    private javax.swing.JLabel cus_education3;
    private javax.swing.JLabel cus_email;
    private javax.swing.JLabel cus_email1;
    private javax.swing.JLabel cus_email2;
    private javax.swing.JLabel cus_email3;
    private javax.swing.JLabel cus_gender;
    private javax.swing.JLabel cus_gender1;
    private javax.swing.JLabel cus_gender2;
    private javax.swing.JLabel cus_gender3;
    private javax.swing.JLabel cus_height;
    private javax.swing.JLabel cus_height1;
    private javax.swing.JLabel cus_height2;
    private javax.swing.JLabel cus_height3;
    private javax.swing.JLabel cus_hobby;
    private javax.swing.JLabel cus_hobby1;
    private javax.swing.JLabel cus_hobby2;
    private javax.swing.JLabel cus_hobby3;
    private javax.swing.JLabel cus_ic;
    private javax.swing.JLabel cus_ic1;
    private javax.swing.JLabel cus_ic2;
    private javax.swing.JLabel cus_ic3;
    private javax.swing.JLabel cus_invoice_code;
    private javax.swing.JLabel cus_invoice_code1;
    private javax.swing.JLabel cus_invoice_code2;
    private javax.swing.JLabel cus_invoice_code3;
    private javax.swing.JLabel cus_invoice_date;
    private javax.swing.JLabel cus_invoice_date1;
    private javax.swing.JLabel cus_invoice_date2;
    private javax.swing.JLabel cus_invoice_date3;
    private javax.swing.JLabel cus_name;
    private javax.swing.JLabel cus_name1;
    private javax.swing.JLabel cus_name2;
    private javax.swing.JLabel cus_name3;
    private javax.swing.JLabel cus_nation;
    private javax.swing.JLabel cus_nation1;
    private javax.swing.JLabel cus_nation2;
    private javax.swing.JLabel cus_nation3;
    private javax.swing.JLabel cus_occupation;
    private javax.swing.JLabel cus_occupation1;
    private javax.swing.JLabel cus_occupation2;
    private javax.swing.JLabel cus_occupation3;
    private javax.swing.JLabel cus_payment;
    private javax.swing.JLabel cus_payment1;
    private javax.swing.JLabel cus_payment2;
    private javax.swing.JLabel cus_payment3;
    private javax.swing.JLabel cus_race;
    private javax.swing.JLabel cus_race1;
    private javax.swing.JLabel cus_race2;
    private javax.swing.JLabel cus_race3;
    private javax.swing.JLabel cus_religion;
    private javax.swing.JLabel cus_religion1;
    private javax.swing.JLabel cus_religion2;
    private javax.swing.JLabel cus_religion3;
    private javax.swing.JLabel cus_salary;
    private javax.swing.JLabel cus_salary1;
    private javax.swing.JLabel cus_salary2;
    private javax.swing.JLabel cus_salary3;
    private javax.swing.JLabel cus_weight;
    private javax.swing.JLabel cus_weight1;
    private javax.swing.JLabel cus_weight2;
    private javax.swing.JLabel cus_weight3;
    private javax.swing.JPanel customerprofile;
    private javax.swing.JTextField datingLocation;
    private javax.swing.JTextField datingLocation1;
    private javax.swing.JTextField datingLocation2;
    private javax.swing.JTextField datingLocation3;
    private javax.swing.JTextField datingTime;
    private javax.swing.JTextField datingTime1;
    private javax.swing.JTextField datingTime2;
    private javax.swing.JTextField datingTime3;
    private javax.swing.JLabel dating_location;
    private javax.swing.JLabel dating_location1;
    private javax.swing.JLabel dating_location2;
    private javax.swing.JLabel dating_location3;
    private javax.swing.JLabel dating_time;
    private javax.swing.JLabel dating_time1;
    private javax.swing.JLabel dating_time2;
    private javax.swing.JLabel dating_time3;
    private javax.swing.JButton delete;
    private javax.swing.JButton edit;
    private javax.swing.JPanel editcustomer;
    private javax.swing.JRadioButton genderFemale;
    private javax.swing.JRadioButton genderFemale1;
    private javax.swing.JRadioButton genderFemale2;
    private javax.swing.JRadioButton genderFemale3;
    private javax.swing.JRadioButton genderMale;
    private javax.swing.JRadioButton genderMale1;
    private javax.swing.JRadioButton genderMale2;
    private javax.swing.JRadioButton genderMale3;
    private javax.swing.JPanel info;
    private javax.swing.JPanel infoedit;
    private javax.swing.JPanel infoview;
    private javax.swing.JPanel infoview1;
    private javax.swing.JFormattedTextField invoiceDate;
    private javax.swing.JFormattedTextField invoiceDate1;
    private javax.swing.JFormattedTextField invoiceDate2;
    private javax.swing.JFormattedTextField invoiceDate3;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox3;
    private javax.swing.JCheckBox jCheckBox4;
    private javax.swing.JCheckBox jCheckBox5;
    private javax.swing.JCheckBox jCheckBox6;
    private javax.swing.JCheckBox jCheckBox7;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator10;
    private javax.swing.JSeparator jSeparator11;
    private javax.swing.JSeparator jSeparator12;
    private javax.swing.JSeparator jSeparator13;
    private javax.swing.JSeparator jSeparator14;
    private javax.swing.JSeparator jSeparator15;
    private javax.swing.JSeparator jSeparator16;
    private javax.swing.JSeparator jSeparator17;
    private javax.swing.JSeparator jSeparator18;
    private javax.swing.JSeparator jSeparator19;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator20;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator6;
    private javax.swing.JSeparator jSeparator7;
    private javax.swing.JSeparator jSeparator8;
    private javax.swing.JSeparator jSeparator9;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    private javax.swing.JButton match;
    private javax.swing.JRadioButton relationshipFriendship;
    private javax.swing.JRadioButton relationshipFriendship1;
    private javax.swing.JRadioButton relationshipFriendship2;
    private javax.swing.JRadioButton relationshipFriendship3;
    private javax.swing.JRadioButton relationshipMarriage;
    private javax.swing.JRadioButton relationshipMarriage1;
    private javax.swing.JRadioButton relationshipMarriage2;
    private javax.swing.JRadioButton relationshipMarriage3;
    private javax.swing.JButton save;
    private javax.swing.JComboBox search;
    private javax.swing.JButton searchbutton;
    private javax.swing.JTextField searchdataField;
    private javax.swing.JLabel step1;
    private javax.swing.JLabel step10;
    private javax.swing.JLabel step11;
    private javax.swing.JLabel step12;
    private javax.swing.JLabel step2;
    private javax.swing.JLabel step3;
    private javax.swing.JLabel step4;
    private javax.swing.JLabel step5;
    private javax.swing.JLabel step6;
    private javax.swing.JLabel step7;
    private javax.swing.JLabel step8;
    private javax.swing.JLabel step9;
    private javax.swing.JPanel tableinfo;
    private javax.swing.JButton view;
    private javax.swing.JPanel viewcustomer;
    private javax.swing.JPanel viewcustomer1;
    // End of variables declaration//GEN-END:variables

}
